Article View: gnu.gcc.help
Article #41519Re: Memory leak Why ??
From: Joe Buck
Date: Fri, 15 Mar 1996 00:00
Date: Fri, 15 Mar 1996 00:00
22 lines
1032 bytes
1032 bytes
"Darrell Gallion, D260" <dgallion@cldx.com> writes:
>With gcc version 2.6.3 this will leak memory.
>Any thoughts ?
>
>#include <strstream.h>
>
>void main(void) {
> for(;;) {
> strstream str;
> }
>}
This was a libg++ bug (in the code for the strstream class). The program
does not leak memory under gcc 2.7.2 and libg++ 2.7.1 (I just checked
with purify, though I changed the for loop to step from 1 to 10 instead
of forever.
--
-- Joe Buck <jbuck@synopsys.com> (not speaking for Synopsys, Inc)
Work for something because it is good,
not just because it stands a chance to succeed. -- Vaclav Havel
Technical Details
Message-ID:
<4iccar$pkj@hermes.synopsys.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3140C5F4.5A66@cldx.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,3c9a55f90d700ac7 X-Google-Attributes: gid11318c,public From: jbuck@synopsys.com (Joe Buck) Subject: Re: Memory leak Why ?? Date: 1996/03/15 Message-ID: <4iccar$pkj@hermes.synopsys.com> X-Deja-AN: 142798778 references: <3140C5F4.5A66@cldx.com> organization: Synopsys Inc., Mountain View, CA 94043-4033 newsgroups: gnu.gcc.help