avformat/asfdec_f: Fix memleak
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 2 Jul 2015 07:23:35 +0000 (09:23 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 2 Jul 2015 07:42:33 +0000 (09:42 +0200)
Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/asfdec_f.c

index 500c5f0..3775cdb 100644 (file)
@@ -729,6 +729,7 @@ static int asf_read_metadata(AVFormatContext *s, int64_t size)
         } else {
             get_tag(s, name, value_type, value_len, 16);
         }
+        av_freep(&name);
     }
 
     return 0;