]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
html-styled-ostream: Fix memory leak.
authorBruno Haible <bruno@clisp.org>
Sat, 9 Feb 2019 14:05:53 +0000 (15:05 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 9 Feb 2019 14:05:53 +0000 (15:05 +0100)
* gnulib-local/lib/html-styled-ostream.oo.c (html_styled_ostream::free): Free
the stream.

gnulib-local/lib/html-styled-ostream.oo.c

index 1939b19d0c710ce224a72723f6a74809cdcb1fc2..b2ac5d785996b906af927705d18ec471f6fac0f6 100644 (file)
@@ -70,6 +70,7 @@ html_styled_ostream::free (html_styled_ostream_t stream)
   html_ostream_free (stream->html_destination);
   ostream_write_str (stream->destination, "</body>\n");
   ostream_write_str (stream->destination, "</html>\n");
+  free (stream);
 }
 
 /* Implementation of styled_ostream_t methods.  */