Bug 16 - Smart pointer memory leak
Smart pointer memory leak
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: core
pre-release
PC Linux
: P1 blocker
Assigned To: Mathieu Lacage
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-13 10:54 UTC by Gustavo J. A. M. Carneiro
Modified: 2008-07-01 13:32 UTC (History)
0 users

See Also:


Attachments
patch (2.09 KB, patch)
2007-04-13 10:55 UTC, Gustavo J. A. M. Carneiro
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo J. A. M. Carneiro 2007-04-13 10:54:48 UTC
The m_count member of Ptr<T> is allocated unconditionally, but only deallocated when m_ptr != 0, causing memory leaks.
Comment 1 Gustavo J. A. M. Carneiro 2007-04-13 10:55:08 UTC
Created attachment 9 [details]
patch
Comment 2 Mathieu Lacage 2007-04-18 01:58:07 UTC
applied.
thanks.