summaryrefslogtreecommitdiff
path: root/libavcodec/vc1.c
diff options
context:
space:
mode:
authorErik Hovland <erik@hovland.org>2008-07-18 07:15:50 +0000
committerBenoit Fouet <benoit.fouet@free.fr>2008-07-18 07:15:50 +0000
commit8d8d2b73914a47cf9ce5ca4ff96de6fd067b84a6 (patch)
treeb2f4e77e73a647b2f86f1919f01cf2c14d281870 /libavcodec/vc1.c
parentbe390a4e2e71e21fd6185185a7f5c882ff16ed05 (diff)
Fix a mem leak in vc1_decode_frame().
Patch by Erik Hovland erik hovland org Originally committed as revision 14277 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vc1.c')
-rw-r--r--libavcodec/vc1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index f1a7232879..6edf746a2f 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -4005,6 +4005,7 @@ static int vc1_decode_frame(AVCodecContext *avctx,
divider = find_next_marker(buf, buf + buf_size);
if((divider == (buf + buf_size)) || AV_RB32(divider) != VC1_CODE_FIELD){
av_log(avctx, AV_LOG_ERROR, "Error in WVC1 interlaced frame\n");
+ av_free(buf2);
return -1;
}