diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2010-03-05 17:26:34 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2010-03-05 17:26:34 +0000 |
commit | 5301a05d3ea208c140b41515468f98f5d94ddab9 (patch) | |
tree | 88721cf8f9c83aa46d07d6c91261fa8e38e6dcea | |
parent | 124cb45137dd183ec59e6b24ee80554586ff138d (diff) | |
download | ffmpeg-5301a05d3ea208c140b41515468f98f5d94ddab9.tar.gz |
Fix memory leak in NUT muxer
Originally committed as revision 22222 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
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;i<s->nb_streams;i++) + for(i=0;i<s->nb_streams;i++) { av_freep(&s->streams[i]->priv_data); + av_freep(&s->streams[i]->index_entries); + } av_freep(&s->priv_data); return ret; } |