[SCM] libav/experimental: asfdec: fix a memleak. Patch from Anton Khirnov wyskas gmail

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:01:24 UTC 2013


The following commit has been merged in the experimental branch:
commit 47794b9d3ee2e8fad92d5beeea5c4ec3b7e515f5
Author: Benoit Fouet <benoit.fouet at free.fr>
Date:   Wed Feb 24 07:32:20 2010 +0000

    asfdec: fix a memleak.
    Patch from Anton Khirnov wyskas gmail
    
    Originally committed as revision 22017 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 7f26cf1..ae59a99 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))

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list