OSDN Git Service

Fix 10l leak in ffv1.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 28 Oct 2010 12:15:50 +0000 (12:15 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 28 Oct 2010 12:15:50 +0000 (12:15 +0000)
Originally committed as revision 25595 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/ffv1.c

index e52d6f9..813e41d 100644 (file)
@@ -1295,6 +1295,10 @@ static av_cold int common_end(AVCodecContext *avctx){
         av_freep(&s->rc_stat2[j]);
     }
 
+    for(i=0; i<s->slice_count; i++){
+        av_freep(&s->slice_context[i]);
+    }
+
     return 0;
 }