From 4fc5d7d3cc6fc233cb846dc2ede4eb87c8e7baba Mon Sep 17 00:00:00 2001 From: appoe <1029040451@qq.com> Date: Thu, 4 Nov 2021 07:31:59 +0000 Subject: [PATCH] [PATCH][CVE-2020-22042]fftools/ffmpeg: Fix leak of AVFilterInOut in case of error Signed-off-by: appoe <1029040451@qq.com> --- fftools/ffmpeg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index 2e9448ea2b..a92c7f20ef 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -528,6 +528,7 @@ static void ffmpeg_cleanup(int ret) for (j = 0; j < fg->nb_outputs; j++) { OutputFilter *ofilter = fg->outputs[j]; + avfilter_inout_free(&ofilter->out_tmp); av_freep(&ofilter->name); av_freep(&ofilter->formats); av_freep(&ofilter->channel_layouts);