summaryrefslogtreecommitdiff
path: root/libavcodec/vc1dec.c
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-10-09 16:09:41 +0200
committerJanne Grunau <janne-libav@jannau.net>2012-10-09 16:09:41 +0200
commit6f8ef5320f4d435803482ed322f3de45e6ea125c (patch)
treef55dba727b7dd145e016694af1302dafaac7988c /libavcodec/vc1dec.c
parent714f5ab59780de9da546a24335a6976dac18fbe3 (diff)
vc1dec: prevent memory leak in error path
Fixes CID732271.
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r--libavcodec/vc1dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 13303dc059..d4108757c9 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -5463,7 +5463,7 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
if (!s->context_initialized) {
if (ff_msmpeg4_decode_init(avctx) < 0 || ff_vc1_decode_init_alloc_tables(v) < 0)
- return -1;
+ goto err;
s->low_delay = !avctx->has_b_frames || v->res_sprite;