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>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
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 12f74b2..f4e9a4e 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;
 }