[FFmpeg-devel] [PATCH] lavc/smacker: fix mem leak in case of init failure
Lukasz Marek
lukasz.m.luki2 at gmail.com
Sat Nov 22 22:46:24 CET 2014
Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
---
libavcodec/smacker.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c
index 518bdad..b5538c7 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);
}
--
1.9.1
More information about the ffmpeg-devel
mailing list