diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-15 02:13:56 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-02-27 07:20:57 +0100 |
commit | d0045b41a362c1724a0e0659d32b664becd4c2d8 (patch) | |
tree | c75857219a232e26187e67ded509a9160a164c7b /libavcodec/msmpeg4dec.c | |
parent | 9ce88b5b5361c019a1db0c6993fc25f5e316a204 (diff) | |
download | ffmpeg-d0045b41a362c1724a0e0659d32b664becd4c2d8.tar.gz |
avcodec/magicyuvenc: Fix memleak upon init failure
If an error happens during init after an allocation has succeeded,
the already allocated data leaked up until now. Fix 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 a8ebb5632018adad733f89fa4efe74d7e92155ac)
Diffstat (limited to 'libavcodec/msmpeg4dec.c')
0 files changed, 0 insertions, 0 deletions