Hi, How to use valgrind to detect the memory leak in sub-function?

G

GLiang.liu.cn

Today I use the valgrind to find the memory leak in my application.
But it just gives me such information:
==4323==
==4323== 856,984 bytes in 2 blocks are indirectly lost in loss record
7 of 7
==4323== at 0x4021259: malloc (in /usr/lib/valgrind/x86-linux/
vgpreload_memcheck.so)
==4323== by 0x403ADB9: icvDefaultAlloc(unsigned, void*)
(cxalloc.cpp:49)
==4323== by 0x804A95F: main (liuIpm_biLinear.cpp:72)
==4323==

Here liuIpm_biLinear.cpp is sub-function which was used in main(). I
can't get the information about the wrong position in subfunction.

Are there anybody can give me any suggestion>??
I will appreciate very much..

Liu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top