Version: svn (using Devel) Compiler: gcc 4.3.2 OS: Linux Installed from: Compiled sources In cachegrind/cg_merge.c the functions dopy_FileFn, new_Counts and new_Counts_Zeroed can leak memory if malloc function failed.
Created attachment 36624 [details] Patch to solve the issue
When cg_merge runs out of memory it will terminate the process. In that case memory leaks are not important to fix and we don't bother with them.