[FFmpeg-cvslog] lavf: fix memleak

Michael Niedermayer git at videolan.org
Tue Dec 11 09:03:11 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 11 08:51:34 2012 +0100| [a70b38d2dd0d3c9de6201e2921ea406276455b85] | committer: Michael Niedermayer

lavf: fix memleak

Fixes CID747738
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavformat/utils.c b/libavformat/utils.c
index 2896111..d3e1a99 100644
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -432,6 +432,7 @@ int av_probe_input_buffer(AVIOContext *pb, AVInputFormat **fmt,
         if (!av_strcasecmp(mime_type, "audio/aacp")) {
             *fmt = av_find_input_format("aac");
         }
+        av_freep(&mime_type);
     }
 
     for(probe_size= PROBE_BUF_MIN; probe_size<=max_probe_size && !*fmt;



More information about the ffmpeg-cvslog mailing list