From: Bruno Haible Date: Tue, 14 Apr 2020 21:48:23 +0000 (+0200) Subject: libtextstyle: Fix a memory leak. X-Git-Tag: v0.21~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d166f60e79d39d2ba1342e68f96104c24c85fb7;p=thirdparty%2Fgettext.git libtextstyle: Fix a memory leak. Reported by José E. Marchesi . * libtextstyle/gnulib-local/lib/term-ostream.oo.c (term_ostream::free): Free also the stream's attrbuffer. --- diff --git a/libtextstyle/gnulib-local/lib/term-ostream.oo.c b/libtextstyle/gnulib-local/lib/term-ostream.oo.c index 52b447f0c..36d84d31c 100644 --- a/libtextstyle/gnulib-local/lib/term-ostream.oo.c +++ b/libtextstyle/gnulib-local/lib/term-ostream.oo.c @@ -1,5 +1,5 @@ /* Output stream for attributed text, producing ANSI escape sequences. - Copyright (C) 2006-2008, 2017, 2019 Free Software Foundation, Inc. + Copyright (C) 2006-2008, 2017, 2019-2020 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software: you can redistribute it and/or modify @@ -2105,6 +2105,7 @@ term_ostream::free (term_ostream_t stream) free (stream->hyperlinks_array); } free (stream->buffer); + free (stream->attrbuffer); free (stream); }