diff options
author | Zhao Zhili <quinkblack@foxmail.com> | 2021-10-11 15:39:39 +0800 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-10-11 15:24:41 +0200 |
commit | a742ba60f14ee1265d01a5da59483ab7c2a6431c (patch) | |
tree | df6b0dc348be9d23440d22a8810f9be2982e94af | |
parent | f626a3d0e0e6c59af4e844c7e2d308a93ea8c3e2 (diff) | |
download | ffmpeg-a742ba60f14ee1265d01a5da59483ab7c2a6431c.tar.gz |
libavcodec/speexdec: fix memleak in error path
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavcodec/speexdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/speexdec.c b/libavcodec/speexdec.c index 35270e6723..fccceab74c 100644 --- a/libavcodec/speexdec.c +++ b/libavcodec/speexdec.c @@ -1586,5 +1586,5 @@ const AVCodec ff_speex_decoder = { .close = speex_decode_close, .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, .priv_data_size = sizeof(SpeexContext), - .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, + .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, }; |