[FFmpeg-cvslog] r22222 - trunk/libavformat/utils.c

vitor subversion
Fri Mar 5 18:26:35 CET 2010


Author: vitor
Date: Fri Mar  5 18:26:34 2010
New Revision: 22222

Log:
Fix memory leak in NUT muxer

Modified:
   trunk/libavformat/utils.c

Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c	Fri Mar  5 09:34:31 2010	(r22221)
+++ trunk/libavformat/utils.c	Fri Mar  5 18:26:34 2010	(r22222)
@@ -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;
 }



More information about the ffmpeg-cvslog mailing list