asfdec: fix a memleak.
authorBenoit Fouet <benoit.fouet@free.fr>
Wed, 24 Feb 2010 07:32:20 +0000 (07:32 +0000)
committerBenoit Fouet <benoit.fouet@free.fr>
Wed, 24 Feb 2010 07:32:20 +0000 (07:32 +0000)
Patch from Anton Khirnov wyskas gmail

Originally committed as revision 22017 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/asfdec.c

index 7f26cf1..ae59a99 100644 (file)
@@ -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))