aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorNikolas Bowe <nbowe-at-google.com@ffmpeg.org>2018-01-19 13:17:07 -0800
committerMichael Niedermayer <michael@niedermayer.cc>2018-04-13 00:35:15 +0200
commit68f9a9fe4bcba2db62a3cb43b3013bf58368fb6d (patch)
treedbd1b647dd461cdaab868cc3459f3aa5f112d09f /libavformat
parent980fe1b7a6fcbfc087dd2580308b565840e4eb6a (diff)
downloadffmpeg-68f9a9fe4bcba2db62a3cb43b3013bf58368fb6d.tar.gz
avformat/lrcdec: Fix memory leak in lrc_read_header()
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit ef5994e09d07ace62a672fcdc84761231288edad) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/lrcdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/lrcdec.c b/libavformat/lrcdec.c
index 12f74b22a0..f4e9a4efa9 100644
--- a/libavformat/lrcdec.c
+++ b/libavformat/lrcdec.c
@@ -212,6 +212,7 @@ static int lrc_read_header(AVFormatContext *s)
}
ff_subtitles_queue_finalize(s, &lrc->q);
ff_metadata_conv_ctx(s, NULL, ff_lrc_metadata_conv);
+ av_bprint_finalize(&line, NULL);
return 0;
}