diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2007-10-12 23:25:48 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2007-10-12 23:25:48 +0000 |
commit | 29a7b8ef2741a3c5bba8394608b090b0ec8b9365 (patch) | |
tree | 6ddf5a6ebc9a82f04a7d88984a1d9059c9ee6261 /libavformat/asf.c | |
parent | 6ad423489ea9b7067a86ca23578023a012f3aad7 (diff) | |
download | ffmpeg-streaming-29a7b8ef2741a3c5bba8394608b090b0ec8b9365.zip ffmpeg-streaming-29a7b8ef2741a3c5bba8394608b090b0ec8b9365.tar.gz |
Fix memleak
Closes issue 102
Originally committed as revision 10719 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/asf.c')
-rw-r--r-- | libavformat/asf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/asf.c b/libavformat/asf.c index 6491c0f..4c99182 100644 --- a/libavformat/asf.c +++ b/libavformat/asf.c @@ -878,10 +878,13 @@ static int asf_read_packet(AVFormatContext *s, AVPacket *pkt) return 0; } +static void asf_reset_header(AVFormatContext *s); + static int asf_read_close(AVFormatContext *s) { int i; + asf_reset_header(s); for(i=0;i<s->nb_streams;i++) { AVStream *st = s->streams[i]; av_free(st->priv_data); |