aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-11 08:51:34 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-11 08:51:34 +0100
commita70b38d2dd0d3c9de6201e2921ea406276455b85 (patch)
treec41fd87616d5707669eb9e40d968e19bcc5a5171
parent9696ad6a76534b16dfaf9872dd20017f9f8d18e4 (diff)
downloadffmpeg-a70b38d2dd0d3c9de6201e2921ea406276455b85.tar.gz
lavf: fix memleak
Fixes CID747738 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 28961119fa..d3e1a9901e 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;