STL-String memory leak?

Michel Decima michel.decima@rd.francetelecom.fr
Tue May 2 06:29:00 GMT 2000


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. 


More information about the Libstdc++ mailing list