Bug 16

Summary: Smart pointer memory leak
Product: ns-3 Reporter: Gustavo J. A. M. Carneiro <gjcarneiro>
Component: coreAssignee: Mathieu Lacage <mathieu.lacage>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P1    
Version: pre-release   
Hardware: PC   
OS: Linux   
Attachments: patch

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.