diff mbox series

[FFmpeg-devel] libavcodec/speexdec: fix memleak in error path

Message ID tencent_D69C2CE0D45A3035EF807A34A93F4D57B909@qq.com
State Accepted
Commit a742ba60f14ee1265d01a5da59483ab7c2a6431c
Headers show
Series [FFmpeg-devel] libavcodec/speexdec: fix memleak in error path | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Zhao Zhili Oct. 11, 2021, 7:39 a.m. UTC
---
 libavcodec/speexdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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,
 };