[FFmpeg-cvslog] avformat/lrcdec: Fix memory leak in lrc_read_header()

Nikolas Bowe git at videolan.org
Thu Feb 1 01:53:09 EET 2018


ffmpeg | branch: release/2.8 | Nikolas Bowe <nbowe-at-google.com at ffmpeg.org> | Fri Jan 19 13:17:07 2018 -0800| [3e499537a46f8e758103c26bf95363029e79bbd4] | committer: Michael Niedermayer

avformat/lrcdec: Fix memory leak in lrc_read_header()

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit ef5994e09d07ace62a672fcdc84761231288edad)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3e499537a46f8e758103c26bf95363029e79bbd4
---

 libavformat/lrcdec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/lrcdec.c b/libavformat/lrcdec.c
index df61853d2b..33f2cd90e2 100644
--- a/libavformat/lrcdec.c
+++ b/libavformat/lrcdec.c
@@ -212,6 +212,7 @@ static int lrc_read_header(AVFormatContext *s)
     }
     ff_subtitles_queue_finalize(&lrc->q);
     ff_metadata_conv_ctx(s, NULL, ff_lrc_metadata_conv);
+    av_bprint_finalize(&line, NULL);
     return 0;
 }
 



More information about the ffmpeg-cvslog mailing list