avformat/oggparsevorbis: fix leak of tt
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 7 Aug 2013 15:20:39 +0000 (17:20 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 7 Aug 2013 15:20:39 +0000 (17:20 +0200)
Fixes CID1061059
Fixes fate
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggparsevorbis.c

index effc7a5..d071a35 100644 (file)
@@ -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");