aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/xface.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-15 02:35:27 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-27 07:20:57 +0100
commite7780f16153051f9b169e8bdd6f0696ca03e5f34 (patch)
tree12482795cf180b403831c0ccf26c5187e4742d3d /libavcodec/xface.c
parent7b10d643a06178e160212ca9369abd0810392683 (diff)
downloadffmpeg-e7780f16153051f9b169e8bdd6f0696ca03e5f34.tar.gz
avcodec/mlpenc: 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 b78031cf1670c176e97f62ad6a4865d3a44c1507)
Diffstat (limited to 'libavcodec/xface.c')
0 files changed, 0 insertions, 0 deletions