LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 08-25-2009, 06:25 AM   #1
kbarani
Member
 
Registered: Dec 2008
Posts: 41

Rep: Reputation: 15
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
 
Old 08-25-2009, 08:57 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,943

Rep: Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029Reputation: 7029
Quote:
Originally Posted by kbarani View Post
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
 
Old 08-25-2009, 10:53 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,808

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Memory leak: How risky not to free allocated memory. kaz2100 Linux - General 1 12-24-2008 12:00 AM
Inactive memory issue, Freebsd (memory leak?) JasperB *BSD 7 08-12-2008 03:19 AM
Memory leak?! nyk Programming 10 01-24-2005 07:08 PM
Memory Leak don_dimo Linux - General 7 03-06-2004 06:51 PM
Memory Leak when using memory debugging C program on SuSE SLES8 babalina Linux - Distributions 0 10-06-2003 09:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration