View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011360ITKpublic2010-10-25 15:332010-10-25 20:08
Reporterkentwilliams 
Assigned Toalexandre gouaillard 
PrioritynormalSeveritymajorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product VersionITK-4-A3 
Target VersionFixed in Version 
Summary0011360: itk::AutoPointer members in mesh cells leaking
DescriptionDiscovered while checking this bug report:

http://public.kitware.com/Bug/view.php?id=1033 [^]

valgrind is reporting memory leakes in the itkSimplexMeshToTriangleMeshFilterTest

The issue seems to be AutoPointers in the mesh cell classes somehow not being destroyed properly;
Additional InformationIf you apply the patch below, which, by assigning 0 to the itk::SmartPointer instances that were leaking, the valgrind leak report goes away. This doesn't make any sense to me.

diff --git a/Testing/Code/BasicFilters/itkSimplexMeshToTriangleMeshFilterTest.cxx b/Testing/Code/BasicFilters/itkSimplexMeshToTriangleMeshFilterTest.cxx
index e74bc90..5d2da0b 100644
--- a/Testing/Code/BasicFilters/itkSimplexMeshToTriangleMeshFilterTest.cxx
+++ b/Testing/Code/BasicFilters/itkSimplexMeshToTriangleMeshFilterTest.cxx
@@ -74,6 +74,8 @@ int itkSimplexMeshToTriangleMeshFilterTest( int , char * [] )
   std::cout << "Back filtered Triangle Mesh: " << triangleMesh << std::endl;
 
   std::cout << "[TEST DONE]" << std::endl;
+ originalTriangleMesh = 0;
+ simplexFilter = 0;
   return EXIT_SUCCESS;
 
 }
TagsNo tags attached.
Resolution Date
Sprint
Sprint Statusbacklog
Attached Files

 Relationships

  Notes
(0022684)
Bradley Lowekamp (developer)
2010-10-25 15:45

Is it possible there was a circular dependency with the smart pointers?

 Issue History
Date Modified Username Field Change
2010-10-25 15:33 kentwilliams New Issue
2010-10-25 15:33 kentwilliams Sprint Status => backlog
2010-10-25 15:45 Bradley Lowekamp Note Added: 0022684
2010-10-25 20:08 Luis Ibanez Status new => assigned
2010-10-25 20:08 Luis Ibanez Assigned To => alexandre gouaillard


Copyright © 2000 - 2018 MantisBT Team