diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-07 17:18:19 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2013-09-18 14:52:58 -0300 |
commit | c7966bf7956497661ca98ffd5ed4fbc6321deb63 (patch) | |
tree | d00ac11619d1bde106eca7f43c1d95a71e0ead89 /libavformat/oggparsevorbis.c | |
parent | 0f429392cf412dc89909b216cfbf7f7e9fe72717 (diff) | |
download | ffmpeg-c7966bf7956497661ca98ffd5ed4fbc6321deb63.tar.gz |
avformat/oggparsevorbis: fix leak of ct
Fixes CID1061058
Fixes fate
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit d0a882ab1d2a4197da1edd77450af30e2da3460e)
Diffstat (limited to 'libavformat/oggparsevorbis.c')
-rw-r--r-- | libavformat/oggparsevorbis.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c index a21b3a92cc..3938f07f46 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; |