aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-07 17:20:39 +0200
committerJames Almer <jamrial@gmail.com>2013-09-18 14:53:25 -0300
commitc52a25e03bb4fb445b474878d91a49dce92e3ae5 (patch)
tree9c5db8da70608d6997c6d1ffe6adc1b422d74019
parentc7966bf7956497661ca98ffd5ed4fbc6321deb63 (diff)
downloadffmpeg-c52a25e03bb4fb445b474878d91a49dce92e3ae5.tar.gz
avformat/oggparsevorbis: fix leak of tt
Fixes CID1061059 Fixes fate Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit f3b7f470701224086d06012f1d9a31864abe9300)
-rw-r--r--libavformat/oggparsevorbis.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index 3938f07f46..ce475a4701 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -136,12 +136,14 @@ ff_vorbis_comment(AVFormatContext * as, AVDictionary **m, const uint8_t *buf, in
if (!pict) {
av_log(as, AV_LOG_WARNING, "out-of-memory error. Skipping cover art block.\n");
+ av_freep(&tt);
av_freep(&ct);
continue;
}
if ((ret = av_base64_decode(pict, ct, vl)) > 0)
ret = ff_flac_parse_picture(as, pict, ret);
av_freep(&pict);
+ av_freep(&tt);
av_freep(&ct);
if (ret < 0) {
av_log(as, AV_LOG_WARNING, "Failed to parse cover art block.\n");