Skip to content
Snippets Groups Projects
Commit 847d0536 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Revert r14260

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

Reason running free() on random pointers.

Originally committed as revision 14787 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent f5c3eae3
No related branches found
No related tags found
No related merge requests found
...@@ -994,7 +994,6 @@ int avcodec_close(AVCodecContext *avctx) ...@@ -994,7 +994,6 @@ 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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment