[Insight-developers] itkGradientRecursive...

Leila baghdadi baghdadi at sickkids.ca
Tue Jun 21 17:53:41 EDT 2005


Hi Julien,

I was curious about the recent changes to
itkGradientRecursiveGaussianImageFilter to see if the leaks are actually
gone

so I ran valgrind on it, I am no expert with valgrind but it is still
reporting some memory loss except from itkImportImageContainer,

Leila




==4466== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 22 from 2)
==4466== malloc/free: in use at exit: 67636 bytes in 48 blocks.
==4466== malloc/free: 96 allocs, 48 frees, 80942 bytes allocated.
==4466== For counts of detected errors, rerun with: -v
==4466== searching for pointers to 48 not-freed blocks.
==4466== checked 534580 bytes.
==4466==
==4466== 12292 bytes in 1 blocks are possibly lost in loss record 15 of
17
==4466==    at 0x1B9038DE: operator new[](unsigned)
(vg_replace_malloc.c:138)
==4466==    by 0x85C2D35: itk::ImportImageContainer<unsigned long,
itk::CovariantVector<double, 3> >::AllocateElements(unsigned long) const
(itkImportImageContainer.txx:176)
==4466==    by 0x85C25BA: itk::ImportImageContainer<unsigned long,
itk::CovariantVector<double, 3> >::Reserve(unsigned long)
(itkImportImageContainer.txx:77)
==4466==    by 0x85C14A0: itk::Image<itk::CovariantVector<double, 3>,
3>::Allocate() (itkImage.txx:50)
==4466==    by 0x86FBF87:
itk::ImageAdaptor<itk::Image<itk::CovariantVector<double, 3>, 3>,
itk::NthElementPixelAccessor<float, itk::CovariantVector<double, 3>
> >::Allocate() (itkImageAdaptor.txx:59)
==4466==    by 0x86FAA9B:
itk::GradientRecursiveGaussianImageFilter<itk::Image<float, 3>,
itk::Image<itk::CovariantVector<double, 3>, 3> >::GenerateData()
(itkGradientRecursiveGaussianImageFilter.txx:182)
==4466==    by 0x8A08C23:
itk::ProcessObject::UpdateOutputData(itk::DataObject*)
(itkProcessObject.cxx:926)
==4466==    by 0x89F7D79: itk::DataObject::UpdateOutputData()
(itkDataObject.cxx:423)
==4466==    by 0x89F793D: itk::DataObject::Update()
(itkDataObject.cxx:344)
==4466==    by 0x8A081D6: itk::ProcessObject::Update()
(itkProcessObject.cxx:554)
==4466==    by 0x86F8D86: itkGradientRecursiveGaussianFilterTest(int,
char**) (itkGradientRecursiveGaussianFilterTest.cxx:123)
==4466==    by 0x8472015: main (itkTestMain.h:130)
==4466==
==4466== LEAK SUMMARY:
==4466==    definitely lost: 0 bytes in 0 blocks.
==4466==      possibly lost: 12292 bytes in 1 blocks.
==4466==    still reachable: 55344 bytes in 47 blocks.
==4466==         suppressed: 0 bytes in 0 blocks.
==4466== Reachable blocks (those to which a pointer was found) are not
shown.






More information about the Insight-developers mailing list