changeset 5753:2e5aecabfb1e libavformat

Fix memory leak in NUT muxer
author vitor
date Fri, 05 Mar 2010 17:26:34 +0000
parents cb840f900fef
children 65b77d0674d0
files utils.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Fri Mar 05 08:15:20 2010 +0000
+++ b/utils.c	Fri Mar 05 17:26:34 2010 +0000
@@ -2865,8 +2865,10 @@
 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;
 }