[FFmpeg-cvslog] r22017 - trunk/libavformat/asfdec.c

benoit subversion
Wed Feb 24 08:32:20 CET 2010


Author: benoit
Date: Wed Feb 24 08:32:20 2010
New Revision: 22017

Log:
asfdec: fix a memleak.
Patch from Anton Khirnov wyskas gmail

Modified:
   trunk/libavformat/asfdec.c

Modified: trunk/libavformat/asfdec.c
==============================================================================
--- trunk/libavformat/asfdec.c	Wed Feb 24 08:31:03 2010	(r22016)
+++ trunk/libavformat/asfdec.c	Wed Feb 24 08:32:20 2010	(r22017)
@@ -168,6 +168,7 @@ static void get_tag(AVFormatContext *s, 
         snprintf(value, len, "%"PRIu64, num);
     } else {
         url_fskip(s->pb, len);
+        av_freep(&value);
         return;
     }
     if (!strncmp(key, "WM/", 3))



More information about the ffmpeg-cvslog mailing list