diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 92f73b735b..48f09fbff6 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -973,6 +973,7 @@ int avcodec_close(AVCodecContext *avctx) avctx->codec->close(avctx); avcodec_default_free_buffers(avctx); av_freep(&avctx->priv_data); + av_freep(&avctx->rc_eq); avctx->codec = NULL; entangled_thread_counter--; return 0;