]> git.sesse.net Git - ffmpeg/commitdiff
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>
Sat, 20 Jan 2018 20:32:04 +0000 (21:32 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/lrcdec.c

index 12f74b22a08ef0e1a1fef2f840a03891d4b1bbef..f4e9a4efa9118f12cba0fe5d17126da9a03bb1e2 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;
 }