[PATCH][CVE-2020-22042]fftools/ffmpeg: Fix leak of AVFilterInOut in case of error

Signed-off-by: appoe <1029040451@qq.com>
This commit is contained in:
appoe 2021-11-04 07:31:59 +00:00
parent d3cdec1fc9
commit 4fc5d7d3cc

View File

@ -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);