This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: STL-String memory leak?


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. 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]