diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-08-22 02:01:44 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-08-22 02:29:51 +0300 |
commit | d7633ed7a59a1e511f528426dc6c9660cc09bdff (patch) | |
tree | bf5d627018a4f7d8bbe8a5b82ae32b2b7c543d1d /libavformat/swfdec.c | |
parent | 1ae4b1e09dca723c46e739b8b841e7091d56d526 (diff) |
avformat/swfdec: Fix memleak on error
Fixes: 9eb9cf5b8c26dd0fa7107ed0348dcc1f/signal_sigabrt_7ffff6ae7c37_8925_1f676b5229d009f2b56dfd9e149fa6ba.swf
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/swfdec.c')
-rw-r--r-- | libavformat/swfdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/swfdec.c b/libavformat/swfdec.c index 20f1568e6f..3268c0aa37 100644 --- a/libavformat/swfdec.c +++ b/libavformat/swfdec.c @@ -397,6 +397,7 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt) if (linesize * height > pkt->size) { res = AVERROR_INVALIDDATA; + av_packet_unref(pkt); goto bitmap_end; } |