A LD_PRELOAD based memory profiler and leak detector for Linux