summaryrefslogtreecommitdiff
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-04-24 22:16:00 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-04-24 22:16:00 +0000
commit81d5ae6decfaa5d8fbf40f0f448de81b644c7002 (patch)
tree7ab752e7b9547d50361d497453d1d14beaf29651 /libavformat/mpegts.c
parent287d6cfad7fb4d0fd1d373a9ebc81f280ab8c1ca (diff)
Fixing memleaks.
Originally committed as revision 12943 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index bd86fafea0..9407dae138 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -767,6 +767,8 @@ static void sdt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
if(program)
av_set_program_name(program, provider_name, name);
}
+ av_free(name);
+ av_free(provider_name);
break;
default:
break;
@@ -1370,6 +1372,9 @@ static int mpegts_read_close(AVFormatContext *s)
{
MpegTSContext *ts = s->priv_data;
int i;
+
+ clear_programs(ts);
+
for(i=0;i<NB_PID_MAX;i++)
if (ts->pids[i]) mpegts_close_filter(ts, ts->pids[i]);