In our company we have an inhouse framework similar to the mtrace (MALLOC_TRACE) functionality in glibc for detecting memory leaks. This framework is written to run on Windows, but it doesn't work very well in GNU/Linux.
So, do anybody know of a portable equivalent to mtrace (MALLOC_TRACE), that can run on Windows, GNU/Linux and hopefully even MacOSX?