diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-11-22 22:38:17 +0100 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-11-23 03:25:34 +0100 |
commit | 969382162f1884da758934cb86fc4a2c948635dd (patch) | |
tree | 88ddd8610f8da9e7b73a61dc4ce9054ed2533458 | |
parent | 691f9be622c73c5743f38ba494eabc67aa5f43a6 (diff) | |
download | ffmpeg-969382162f1884da758934cb86fc4a2c948635dd.tar.gz |
lavc/smacker: fix mem leak in case of init failure
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
-rw-r--r-- | libavcodec/smacker.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c index 518bdad3ec..b5538c7494 100644 --- a/libavcodec/smacker.c +++ b/libavcodec/smacker.c @@ -589,6 +589,7 @@ static av_cold int decode_init(AVCodecContext *avctx) /* decode huffman trees from extradata */ if(avctx->extradata_size < 16){ av_log(avctx, AV_LOG_ERROR, "Extradata missing!\n"); + decode_end(avctx); return AVERROR(EINVAL); } |