avformat/lrcdec: Fix memory leak in lrc_read_header()
authorNikolas Bowe <nbowe-at-google.com@ffmpeg.org>
Fri, 19 Jan 2018 21:17:07 +0000 (13:17 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 19 Feb 2018 01:40:54 +0000 (02:40 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit ef5994e09d07ace62a672fcdc84761231288edad)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/lrcdec.c

index d3655fc..1f0533f 100644 (file)
@@ -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;
 }