changeset 7300:7e806e21c193 libavcodec

Fix a mem leak in vc1_decode_frame(). Patch by Erik Hovland erik hovland org
author benoit
date Fri, 18 Jul 2008 07:15:50 +0000
parents 1b5bc92244de
children aab7f1fb59ea
files vc1.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vc1.c	Thu Jul 17 23:48:53 2008 +0000
+++ b/vc1.c	Fri Jul 18 07:15:50 2008 +0000
@@ -4005,6 +4005,7 @@
             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;
             }