diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-13 02:45:38 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-09-17 00:09:08 +0200 |
commit | 64a64d47c0afd2a0517375345fe7df61abfc89c0 (patch) | |
tree | 1edc39e5baaf2a601ce8666d4f4d1b513de6ebaa /libavcodec/binkdsp.h | |
parent | 96061c5a4f690c3ab49e4458701bb013fd3dd57f (diff) | |
download | ffmpeg-64a64d47c0afd2a0517375345fe7df61abfc89c0.tar.gz |
avcodec/svq3: Fix memleaks upon allocation error
Commit b2361cfb94738298a6c4037cc348fe5015efb841e made all of the
error paths in svq3_decode_init() call svq3_decode_end(); yet several
new error paths that were added later (in merges from Libav) returned
directly without cleaning up properly. This commit fixes the resulting
potential memleaks by setting the FF_CODEC_CAP_INIT_CLEANUP flag. This
also allows to simplify freeing by returning directly.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/binkdsp.h')
0 files changed, 0 insertions, 0 deletions