LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Why this memory leak occuring (https://www.linuxquestions.org/questions/linux-software-2/why-this-memory-leak-occuring-750081/)

kbarani 08-25-2009 06:25 AM

Why this memory leak occuring
 
Hi all,

In my c++ application in fedora core2, i am detecting memory leak using valgrind , the valgrind report as follows , please tell me what factor for the memory leak.

==24287== 6082 bytes in 308 blocks are possibly lost in loss record 76 of 77
==24287== at 0x1B904BF7: operator new(unsigned) (vg_replace_malloc.c:133)
==24287== by 0x1806F8: std::__default_alloc_template<true, 0>::allocate(unsigned) (in /usr/lib/libstdc++.so.5.0.5)
==24287== by 0x1860F7: std::string::_Rep::_S_create(unsigned, std::allocator<char> const&) (in /usr/lib/libstdc++.so.5.0.5)
==24287== by 0x182D6F: std::string::_M_mutate(unsigned, unsigned, unsigned) (in /usr/lib/libstdc++.so.5.0.5)
==24287==
==24287==



Thanks,
K Barani

TB0ne 08-25-2009 08:57 AM

Quote:

Originally Posted by kbarani (Post 3656610)
Hi all,

In my c++ application in fedora core2, i am detecting memory leak using valgrind , the valgrind report as follows , please tell me what factor for the memory leak.

==24287== 6082 bytes in 308 blocks are possibly lost in loss record 76 of 77
==24287== at 0x1B904BF7: operator new(unsigned) (vg_replace_malloc.c:133)
==24287== by 0x1806F8: std::__default_alloc_template<true, 0>::allocate(unsigned) (in /usr/lib/libstdc++.so.5.0.5)
==24287== by 0x1860F7: std::string::_Rep::_S_create(unsigned, std::allocator<char> const&) (in /usr/lib/libstdc++.so.5.0.5)
==24287== by 0x182D6F: std::string::_M_mutate(unsigned, unsigned, unsigned) (in /usr/lib/libstdc++.so.5.0.5)
==24287==
==24287==



Thanks,
K Barani

Don't post the same question multiple times. You have the same question three times in the same forum

pixellany 08-25-2009 10:53 PM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 07:25 AM.