]> git.sesse.net Git - ffmpeg/commit
fftools/ffmpeg: Fix leak of AVFilterInOut in case of error
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 23 Aug 2020 01:49:48 +0000 (03:49 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 23 Aug 2020 17:57:42 +0000 (19:57 +0200)
commit426c16d61a9b5056a157a1a2a057a4e4d13eef84
tree55583fd30ddec938832e888bf37dd41429746eab
parent95b8df687cc0182a4ec7666c2bbc2826c9ef0852
fftools/ffmpeg: Fix leak of AVFilterInOut in case of error

The AVFilterInOuts normally get freed in init_output_filter() when
the corresponding streams get created; yet if an error happens before
one reaches said point, they leak. Therefore this commit makes
ffmpeg_cleanup free them, too.

Fixes ticket #8267.

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
fftools/ffmpeg.c