[Insight-users] itk::GDCMSeriesFileNames memory leaks with MFC

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Feb 12 16:06:54 EST 2009


On Thu, Feb 12, 2009 at 7:45 PM, Lyubomir G. Zagorchev
<Lyubomir.G.Zagorchev at dartmouth.edu> wrote:
>
> Hi Mathieu,
>
> I tracked down the memory leak to an old issue which supposedly was resolved earlier:
>
> 0007004: ITK Memory leak in gdcm::gdcmdocument.h , function ParseDES, invoke RemoveEntry, and the solved method
>
> Somehow the old code that was causing the leaks (and still is!!) has found
> its way back into CVS.  Please verify that and let me know.
>
> Adding  "delete entryToRemove;" to "bool ElementSet::RemoveEntry( DocEntry *entryToRemove)"
> as reported earlier solves the memory leaks, which by the way are only noticeable if you use MFC...

Ok so I can consider the issue fixed. The patch will be integrated in
the next release of ITK

http://public.kitware.com/cgi-bin/viewcvs.cgi/Utilities/gdcm/src/gdcmElementSet.cxx?root=Insight&r1=1.6&r2=1.7

Thank you
-- 
Mathieu


More information about the Insight-users mailing list