diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-02-08 15:21:54 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-02-09 06:52:41 +0100 |
commit | 2c7f25d4608ba7d681b8f156dec75a5c60688be8 (patch) | |
tree | 740262f17a25c3e561b69592892cab144aaae150 /libavcodec | |
parent | e78d0810d1741535c95e5ae0f198977626b1cdff (diff) | |
download | ffmpeg-2c7f25d4608ba7d681b8f156dec75a5c60688be8.tar.gz |
avcodec/hcadec: Fix memleak upon allocation error
An AVFloatDSPContext would leak upon av_tx_init() failure.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/hcadec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/hcadec.c b/libavcodec/hcadec.c index c98f8eb379..ef3af08c4c 100644 --- a/libavcodec/hcadec.c +++ b/libavcodec/hcadec.c @@ -455,6 +455,7 @@ const AVCodec ff_hca_decoder = { .decode = decode_frame, .close = decode_close, .capabilities = AV_CODEC_CAP_DR1, + .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, .sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_NONE }, }; |