Commit ef2b64f0 authored by Stefano Sabatini's avatar Stefano Sabatini

Free in avcodec_close() avctx->rc_eq. Fix a memory leak.

Originally committed as revision 14260 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 9dff86c6
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment