[FFmpeg-cvslog] lavc/options: fix leaks in avcodec_free_context

Lukasz Marek git at videolan.org
Wed Nov 26 23:44:44 CET 2014


ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki2 at gmail.com> | Sat Nov 22 20:43:47 2014 +0100| [345cfd04d093d9fdec81ea3531e73b1f5c1b6a6c] | committer: Lukasz Marek

lavc/options: fix leaks in avcodec_free_context

Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=345cfd04d093d9fdec81ea3531e73b1f5c1b6a6c
---

 libavcodec/options.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavcodec/options.c b/libavcodec/options.c
index 44f3e90..7f9fb07 100644
--- a/libavcodec/options.c
+++ b/libavcodec/options.c
@@ -170,6 +170,9 @@ void avcodec_free_context(AVCodecContext **pavctx)
 
     av_freep(&avctx->extradata);
     av_freep(&avctx->subtitle_header);
+    av_freep(&avctx->intra_matrix);
+    av_freep(&avctx->inter_matrix);
+    av_freep(&avctx->rc_override);
 
     av_freep(pavctx);
 }



More information about the ffmpeg-cvslog mailing list