From 5301a05d3ea208c140b41515468f98f5d94ddab9 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Fri, 5 Mar 2010 17:26:34 +0000 Subject: [PATCH] Fix memory leak in NUT muxer Originally committed as revision 22222 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libavformat/utils.c b/libavformat/utils.c index 2c0f4bbc62..b8538c2602 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2865,8 +2865,10 @@ int av_write_trailer(AVFormatContext *s) fail: if(ret == 0) ret=url_ferror(s->pb); - for(i=0;inb_streams;i++) + for(i=0;inb_streams;i++) { av_freep(&s->streams[i]->priv_data); + av_freep(&s->streams[i]->index_entries); + } av_freep(&s->priv_data); return ret; }