[Ffmpeg-cvslog] CVS: ffmpeg/libavformat mpegts.c,1.38,1.39

Måns Rullgård CVS mru
Sat Apr 1 20:19:02 CEST 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv3112/libavformat

Modified Files:
	mpegts.c 
Log Message:
fix memory leak on mpegts close
found by Andy Brown <abrown at daqtron com>


Index: mpegts.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/mpegts.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- mpegts.c	6 Mar 2006 14:13:01 -0000	1.38
+++ mpegts.c	1 Apr 2006 18:19:00 -0000	1.39
@@ -1374,6 +1374,14 @@
     int i;
     for(i=0;i<NB_PID_MAX;i++)
         if (ts->pids[i]) mpegts_close_filter(ts, ts->pids[i]);
+
+    for(i = 0; i < ts->nb_services; i++){
+        av_free(ts->services[i]->provider_name);
+        av_free(ts->services[i]->name);
+        av_free(ts->services[i]);
+    }
+    av_freep(&ts->services);
+
     return 0;
 }
 





More information about the ffmpeg-cvslog mailing list