]> git.sesse.net Git - ffmpeg/commit
avcodec/gif: Fix leaks upon allocation error
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 14 Sep 2020 15:30:34 +0000 (17:30 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 15 Sep 2020 17:25:26 +0000 (19:25 +0200)
commit8da8774d8eb1d5dec830f36d2e6b0ace1b16e2f5
tree2405485e042cd4b28d2131a00f9e72e296f7ed16
parent39638ace670afd95b7094471a41f71af8c0cad33
avcodec/gif: Fix leaks upon allocation error

If one of several allocations the gif encoder performs in its init
function fails, the successful allocations leak. Fix this by adding the
FF_CODEC_CAP_INIT_CLEANUP flag.

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavcodec/gif.c