[FFmpeg-cvslog] ffmpeg: fix sws_dict leak on error exit

Michael Niedermayer git at videolan.org
Sun Jan 17 02:17:42 CET 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Jan 16 23:14:51 2016 +0100| [7a0361b06f0afbdcface8cab17751ed2c7e81769] | committer: Michael Niedermayer

ffmpeg: fix sws_dict leak on error exit

Fixes: 1b79b985cdf860ffa228c00ee5497051/signal_sigsegv_1f99d24_3549_86d92054a79f6ff900fbaf03f8012b32.aif

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7a0361b06f0afbdcface8cab17751ed2c7e81769
---

 ffmpeg.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/ffmpeg.c b/ffmpeg.c
index 86a0960..1f4277c 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -527,6 +527,8 @@ static void ffmpeg_cleanup(int ret)
         av_freep(&ost->audio_channels_map);
         ost->audio_channels_mapped = 0;
 
+        av_dict_free(&ost->sws_dict);
+
         avcodec_free_context(&ost->enc_ctx);
 
         av_freep(&output_streams[i]);



More information about the ffmpeg-cvslog mailing list