mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
[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:
parent
d3cdec1fc9
commit
4fc5d7d3cc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user