On Friday 01 April 2011, Timo Teräs wrote:
[...] There are valgrind hooks for memory managers. Should probably add them, so it becomes aware of the things. However, those should be only needed for memory pools. Ultimately kamailio uses malloc or mmap to allocate the memory and valgrind knows both.
Hi Timo,
as a small side note: i think you could switch the PGK internal memory manager to use system malloc instead of its pool - maybe this makes it easier for valgrind. At least in 1.5 this was present, e.g.: https://openser.svn.sourceforge.net/svnroot/openser/branches/1.5/mem/mem.h (SYSTEM_MALLOC)
Cheers,
Henning