mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 18:40:03 +01:00
Free in avcodec_close() avctx->rc_eq. Fix a memory leak.
Originally committed as revision 14260 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -973,6 +973,7 @@ int avcodec_close(AVCodecContext *avctx)
|
|||||||
avctx->codec->close(avctx);
|
avctx->codec->close(avctx);
|
||||||
avcodec_default_free_buffers(avctx);
|
avcodec_default_free_buffers(avctx);
|
||||||
av_freep(&avctx->priv_data);
|
av_freep(&avctx->priv_data);
|
||||||
|
av_freep(&avctx->rc_eq);
|
||||||
avctx->codec = NULL;
|
avctx->codec = NULL;
|
||||||
entangled_thread_counter--;
|
entangled_thread_counter--;
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user