aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/asf.c
diff options
context:
space:
mode:
authorRamiro Polla <ramiro.polla@gmail.com>2007-10-12 23:25:48 +0000
committerRamiro Polla <ramiro.polla@gmail.com>2007-10-12 23:25:48 +0000
commit29a7b8ef2741a3c5bba8394608b090b0ec8b9365 (patch)
tree6ddf5a6ebc9a82f04a7d88984a1d9059c9ee6261 /libavformat/asf.c
parent6ad423489ea9b7067a86ca23578023a012f3aad7 (diff)
downloadffmpeg-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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/asf.c b/libavformat/asf.c
index 6491c0f331..4c99182480 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);