Mercurial > libavcodec.hg
diff vc1.c @ 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 | 7a73d76aaaa0 |
children | 5719e2c85aa3 |
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; }