aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-07 17:18:19 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-07 17:18:19 +0200
commitd0a882ab1d2a4197da1edd77450af30e2da3460e (patch)
treecf0701f2ec705e68ed96c5806051178b3cb535c4
parent731f7eaaade4c0cf91f8008cc30c0342caa64df1 (diff)
downloadffmpeg-d0a882ab1d2a4197da1edd77450af30e2da3460e.tar.gz
avformat/oggparsevorbis: fix leak of ct
Fixes CID1061058 Fixes fate Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/oggparsevorbis.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index 719cf7b12d..effc7a54ed 100644
--- a/libavformat/oggparsevorbis.c
+++ b/libavformat/oggparsevorbis.c
@@ -136,11 +136,13 @@ 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(&ct);
continue;
}
if ((ret = av_base64_decode(pict, ct, vl)) > 0)
ret = ff_flac_parse_picture(as, pict, ret);
av_freep(&pict);
+ av_freep(&ct);
if (ret < 0) {
av_log(as, AV_LOG_WARNING, "Failed to parse cover art block.\n");
continue;