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; }