From 41eed8aca8c25646e44a205f281e9148e847cf2c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 9 Feb 2019 15:05:53 +0100 Subject: [PATCH] html-styled-ostream: Fix memory leak. * gnulib-local/lib/html-styled-ostream.oo.c (html_styled_ostream::free): Free the stream. --- gnulib-local/lib/html-styled-ostream.oo.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gnulib-local/lib/html-styled-ostream.oo.c b/gnulib-local/lib/html-styled-ostream.oo.c index 1939b19d0..b2ac5d785 100644 --- a/gnulib-local/lib/html-styled-ostream.oo.c +++ b/gnulib-local/lib/html-styled-ostream.oo.c @@ -70,6 +70,7 @@ html_styled_ostream::free (html_styled_ostream_t stream) html_ostream_free (stream->html_destination); ostream_write_str (stream->destination, "\n"); ostream_write_str (stream->destination, "\n"); + free (stream); } /* Implementation of styled_ostream_t methods. */ -- 2.47.2