LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-23-2013, 12:29 PM   #1
errigour
Member
 
Registered: May 2009
Posts: 366

Rep: Reputation: 6
How to free Ncurses memory allocations


I have this ncurses program that doesn't free all it's allocated memory. Is there a way to free this memory?
Code:
 HEAP SUMMARY:
     in use at exit: 62,171 bytes in 341 blocks
   total heap usage: 562 allocs, 221 frees, 132,612 bytes allocated

 LEAK SUMMARY:
    definitely lost: 0 bytes in 0 blocks
    indirectly lost: 0 bytes in 0 blocks
      possibly lost: 0 bytes in 0 blocks
    still reachable: 62,171 bytes in 341 blocks
         suppressed: 0 bytes in 0 blocks
 
Old 01-23-2013, 01:51 PM   #2
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,862
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
are you sure that ncurses is responsible for the memory loss?
 
Old 01-23-2013, 03:47 PM   #3
dickey
Member
 
Registered: Jun 2009
Posts: 43

Rep: Reputation: 18
Quote:
Originally Posted by errigour View Post
I have this ncurses program that doesn't free all it's allocated memory. Is there a way to free this memory?
Testing for Memory Leaks (Ncurses FAQ)
 
1 members found this post helpful.
Old 01-24-2013, 03:09 AM   #4
errigour
Member
 
Registered: May 2009
Posts: 366

Original Poster
Rep: Reputation: 6
NevemTeve: 70% sure.

dickey: thanks for the coffee
 
  


Reply



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] Virtual Memory limit exhausted at 1TB? malloc/mmap failures even with free memory mfkraft Linux - Server 2 09-16-2012 08:27 AM
looking for free database that has low memory usage and innodb and memory like engin golden_boy615 Linux - Software 8 05-08-2011 07:05 AM
Application Virtual address space memory allocation - memory does not get free chamara82 Linux - General 4 01-01-2011 08:19 PM
LAMP server memory allocations twlilinux Linux - Server 2 07-09-2008 11:19 AM
Fixing a memory leak from ncurses. sleepisforwimps Programming 2 06-18-2005 07:27 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:23 AM.

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