[FFmpeg-cvslog] r14260 - trunk/libavcodec/utils.c

stefano subversion
Thu Jul 17 00:10:35 CEST 2008


Author: stefano
Date: Thu Jul 17 00:10:34 2008
New Revision: 14260

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


Modified:
   trunk/libavcodec/utils.c

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	(original)
+++ trunk/libavcodec/utils.c	Thu Jul 17 00:10:34 2008
@@ -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;




More information about the ffmpeg-cvslog mailing list