diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-04 17:49:16 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-27 07:20:57 +0100 |
commit | 7f1f850f11766be9dd2a03caa19f6d1e85c7793c (patch) | |
tree | 0c88c4755567d1a98fb8f56ce700e02d2f2c3dc1 /libavfilter/lavfutils.c | |
parent | c71de42131a524a3d9fa69209f899e84734cf1bc (diff) | |
download | ffmpeg-7f1f850f11766be9dd2a03caa19f6d1e85c7793c.tar.gz |
avcodec/bink: Fix memleak upon init failure
The init function first allocates an AVFrame and then some buffers; if
one of the buffers couldn't be allocated, the AVFrame leaks. Solve this
by setting 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 4f672889481e7b3dc03c04b02a86836e94104e63)
Diffstat (limited to 'libavfilter/lavfutils.c')
0 files changed, 0 insertions, 0 deletions