By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,958 Members | 1,179 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,958 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Jun 27 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Thu, 29 May 2008 06:06:20 -0700, GLiang.liu.cn wrote:
Today I use the valgrind to find the memory leak in my application.
[...]

This group is for C++ *language* issues only. Suggest you try the
valgrind mailing lists:

http://valgrind.org/support/mailing_lists.html

or available on Gmane at:

http://news.gmane.org/gmane.comp.debugging.valgrind

--
Lionel B
Jun 27 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.