This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: STL-String memory leak?
- To: <libstdc++ at sourceware dot cygnus dot com>
- Subject: Re: STL-String memory leak?
- From: Michel Decima <michel dot decima at rd dot francetelecom dot fr>
- Date: Tue, 2 May 2000 15:27:51 +0200
Hello,
Using gcc-2.95.2 and Purify-4.5.1 on a solaris 2.6 box, your
code produce the followin output in purify:
...
Purify: Searching for all memory leaks...
Memory leaked: 0 bytes (0%); potentially leaked: 0 bytes (0%)
Purify Heap Analysis (combining suppressed and unsuppressed blocks)
Blocks Bytes
Leaked 0 0
Potentially Leaked 0 0
In-Use 3 6736
----------------------------------------
Total Allocated 3 6736
...
conclusion : no memory leak.
IMHO, there is no problem in the string class and ps is not
a good tool for memory consumption measure.