libavcodec/speexdec: fix memleak in error path

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Zhao Zhili 2021-10-11 15:39:39 +08:00 committed by Andreas Rheinhardt
parent f626a3d0e0
commit a742ba60f1
1 changed files with 1 additions and 1 deletions

View File

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