]> git.sesse.net Git - ffmpeg/commit
avcodec/mobiclip: Fix memleak upon init failure
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 15 Sep 2020 00:44:36 +0000 (02:44 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 15 Sep 2020 17:25:26 +0000 (19:25 +0200)
commita53f32cf49a0206f39e38a8fc7915010399ea047
tree55e118094755e743683732effcd3796484fd62c8
parenta8ebb5632018adad733f89fa4efe74d7e92155ac
avcodec/mobiclip: 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>
libavcodec/mobiclip.c