From 29a7b8ef2741a3c5bba8394608b090b0ec8b9365 Mon Sep 17 00:00:00 2001 From: Ramiro Polla Date: Fri, 12 Oct 2007 23:25:48 +0000 Subject: Fix memleak Closes issue 102 Originally committed as revision 10719 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/asf.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavformat') 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;inb_streams;i++) { AVStream *st = s->streams[i]; av_free(st->priv_data); -- cgit v1.2.3