projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54009d4
)
fix memory leak on mpegts close
author
Måns Rullgård
<mans@mansr.com>
Sat, 1 Apr 2006 18:19:00 +0000
(18:19 +0000)
committer
Måns Rullgård
<mans@mansr.com>
Sat, 1 Apr 2006 18:19:00 +0000
(18:19 +0000)
found by Andy Brown <abrown at daqtron com>
Originally committed as revision 5259 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/mpegts.c
patch
|
blob
|
history
diff --git
a/libavformat/mpegts.c
b/libavformat/mpegts.c
index
2804b95
..
09cb116
100644
(file)
--- a/
libavformat/mpegts.c
+++ b/
libavformat/mpegts.c
@@
-1374,6
+1374,14
@@
static int mpegts_read_close(AVFormatContext *s)
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;
}