From: Bruno Haible Date: Sat, 9 Feb 2019 14:05:53 +0000 (+0100) Subject: html-styled-ostream: Fix memory leak. X-Git-Tag: v0.20~178 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41eed8aca8c25646e44a205f281e9148e847cf2c;p=thirdparty%2Fgettext.git html-styled-ostream: Fix memory leak. * gnulib-local/lib/html-styled-ostream.oo.c (html_styled_ostream::free): Free the stream. --- 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. */