diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-14 17:30:34 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-27 07:20:57 +0100 |
commit | 9ce88b5b5361c019a1db0c6993fc25f5e316a204 (patch) | |
tree | 82eb7bede82ba482ce1a880ef5b32eed4f64fa63 /libavcodec/x86/vp9dsp_init.c | |
parent | 9c6d8ae33c1666bbfb8411f2efb3208711486163 (diff) | |
download | ffmpeg-9ce88b5b5361c019a1db0c6993fc25f5e316a204.tar.gz |
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>
(cherry picked from commit 8da8774d8eb1d5dec830f36d2e6b0ace1b16e2f5)
Diffstat (limited to 'libavcodec/x86/vp9dsp_init.c')
0 files changed, 0 insertions, 0 deletions