[CMake] CPack is memory leaking

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Apr 17 05:08:09 EDT 2008


==31752== 55,457 (272 direct, 55,185 indirect) bytes in 1 blocks are
definitely lost in loss record 10 of 18
==31752==    at 0x4C22809: operator new(unsigned long) (vg_replace_malloc.c:230)
==31752==    by 0x59641F: cmGlobalGenerator::CreateLocalGenerator()
(cmGlobalGenerator.cxx:1223)
==31752==    by 0x55DCB2: main (cpack.cxx:225)
==31752==


In cpack.cxx, line 225, there is :

  cmLocalGenerator* cmlg = cmgg.CreateLocalGenerator();

which is never deleted.

Thanks,

-- 
Mathieu


More information about the CMake mailing list