diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-04-24 22:16:00 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-04-24 22:16:00 +0000 |
commit | 81d5ae6decfaa5d8fbf40f0f448de81b644c7002 (patch) | |
tree | 7ab752e7b9547d50361d497453d1d14beaf29651 | |
parent | 287d6cfad7fb4d0fd1d373a9ebc81f280ab8c1ca (diff) | |
download | ffmpeg-81d5ae6decfaa5d8fbf40f0f448de81b644c7002.tar.gz |
Fixing memleaks.
Originally committed as revision 12943 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mpegts.c | 5 |
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]); |