Message ID | tencent_D69C2CE0D45A3035EF807A34A93F4D57B909@qq.com |
---|---|
State | Accepted |
Commit | a742ba60f14ee1265d01a5da59483ab7c2a6431c |
Headers | show |
Series | [FFmpeg-devel] libavcodec/speexdec: fix memleak in error path | expand |
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 |
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, };