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

Discussion in 'C++' started by GLiang.liu.cn@gmail.com, May 29, 2008.

  1. Guest

    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
    , May 29, 2008
    #1
    1. Advertising

  2. Lionel B Guest

    Lionel B, May 29, 2008
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alexandre

    leak detected using valgrind

    Alexandre, Nov 13, 2003, in forum: C++
    Replies:
    1
    Views:
    321
    Gianni Mariani
    Nov 13, 2003
  2. Replies:
    1
    Views:
    464
    Christoph Bartoschek
    Apr 29, 2005
  3. Nathan Bates
    Replies:
    1
    Views:
    1,216
    Tim Peters
    Jul 4, 2006
  4. Ben
    Replies:
    2
    Views:
    886
  5. Lawrence D'Oliveiro

    Death To Sub-Sub-Sub-Directories!

    Lawrence D'Oliveiro, May 5, 2011, in forum: Java
    Replies:
    92
    Views:
    2,024
    Lawrence D'Oliveiro
    May 20, 2011
Loading...

Share This Page