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 7f26cf101a3360438f6a7c72fb1dc10538ef1e47..ae59a996e7a3a5c9a7647b91106bff6423875bc6 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);
         snprintf(value, len, "%"PRIu64, num);
     } else {
         url_fskip(s->pb, len);
+        av_freep(&value);
         return;
     }
     if (!strncmp(key, "WM/", 3))
         return;
     }
     if (!strncmp(key, "WM/", 3))