[FFmpeg-devel] [PATCH] Fix memory leak in lrcdec.c

Nikolas Bowe nbowe at google.com
Fri Jan 19 23:17:07 EET 2018


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

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;
 }
 
-- 
2.16.0.rc1.238.g530d649a79-goog



More information about the ffmpeg-devel mailing list