From a0e7079a207fc38cb3754cf11a29863c81f633e4 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 28 Oct 2010 12:15:50 +0000 Subject: Fix 10l leak in ffv1. Originally committed as revision 25595 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ffv1.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c index e52d6f9b9f..813e41d6e3 100644 --- a/libavcodec/ffv1.c +++ b/libavcodec/ffv1.c @@ -1295,6 +1295,10 @@ static av_cold int common_end(AVCodecContext *avctx){ av_freep(&s->rc_stat2[j]); } + for(i=0; islice_count; i++){ + av_freep(&s->slice_context[i]); + } + return 0; } -- cgit v1.2.3