From ef2b64f04c7269fe59dab0491784e06ade7892ca Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Wed, 16 Jul 2008 22:10:34 +0000 Subject: [PATCH] Free in avcodec_close() avctx->rc_eq. Fix a memory leak. Originally committed as revision 14260 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/utils.c | 1 + 1 file changed, 1 insertion(+) 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;