double free patch by (Måns Rullgård <mru inprovide com>)
[libav.git] / libavformat / mpegtsenc.c
index fbbb83d..3cce37c 100644 (file)
@@ -604,10 +604,6 @@ static int mpegts_write_end(AVFormatContext *s)
     }
     av_free(ts->services);
 
-    for(i = 0; i < s->nb_streams; i++) {
-        st = s->streams[i];
-        av_free(st->priv_data);
-    }
     return 0;
 }