From 47794b9d3ee2e8fad92d5beeea5c4ec3b7e515f5 Mon Sep 17 00:00:00 2001 From: Benoit Fouet Date: Wed, 24 Feb 2010 07:32:20 +0000 Subject: [PATCH] asfdec: fix a memleak. Patch from Anton Khirnov wyskas gmail Originally committed as revision 22017 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/asfdec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 7f26cf101a..ae59a996e7 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -168,6 +168,7 @@ static void get_tag(AVFormatContext *s, const char *key, int type, int len) snprintf(value, len, "%"PRIu64, num); } else { url_fskip(s->pb, len); + av_freep(&value); return; } if (!strncmp(key, "WM/", 3))