[FFmpeg-cvslog] avformat/asfdec_f: Fix memleak

Michael Niedermayer git at videolan.org
Thu Jul 2 09:50:40 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jul  2 09:23:35 2015 +0200| [1f69b7baa10c6c59a7d00c5f40aaae30e5726ee8] | committer: Michael Niedermayer

avformat/asfdec_f: Fix memleak

Found-by: jamrial
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1f69b7baa10c6c59a7d00c5f40aaae30e5726ee8
---

 libavformat/asfdec_f.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c
index 500c5f0..3775cdb 100644
--- a/libavformat/asfdec_f.c
+++ b/libavformat/asfdec_f.c
@@ -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;



More information about the ffmpeg-cvslog mailing list