[FFmpeg-cvslog] avformat/oggparsevorbis: fix leak of tt
Michael Niedermayer
git at videolan.org
Wed Aug 7 17:26:09 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Aug 7 17:20:39 2013 +0200| [f3b7f470701224086d06012f1d9a31864abe9300] | committer: Michael Niedermayer
avformat/oggparsevorbis: fix leak of tt
Fixes CID1061059
Fixes fate
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f3b7f470701224086d06012f1d9a31864abe9300
---
libavformat/oggparsevorbis.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c
index effc7a5..d071a35 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");
More information about the ffmpeg-cvslog
mailing list