summaryrefslogtreecommitdiff
path: root/libavcodec/ffv1.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-10-28 12:15:50 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-10-28 12:15:50 +0000
commita0e7079a207fc38cb3754cf11a29863c81f633e4 (patch)
treeeff151f02011833fd55c3de37cf553d798ee9607 /libavcodec/ffv1.c
parent73cbf86830b79e1827d009dcb8ef81604f243842 (diff)
Fix 10l leak in ffv1.
Originally committed as revision 25595 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ffv1.c')
-rw-r--r--libavcodec/ffv1.c4
1 files changed, 4 insertions, 0 deletions
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; i<s->slice_count; i++){
+ av_freep(&s->slice_context[i]);
+ }
+
return 0;
}