I work in a MnC software company. My task is to fix memory leaks in the software. I am using valgrind memcheck tool. I used 'valgrind --leak-check=yes --log-file=vg.log '. I found that valgrind is showing same memory leak multiples times in different sizes in vg.log and the vg.log file has 2 million lines. As a result I am not able to identify which leak has highest size. I mean which one is the biggest leak. Do you have any idea to solve this issue? I want same memory leak should come once in vg.log with aggregate size.I am using val3.12.0 version of valgrind. I am using Red Hat Enterprise Linux Workstation release 6.5.
Actually valgrind has a --num-callers option which can used to club different similar memory leaks.