|Oct 11, 2009, 06:43 PM||#1|
Valgrind/memory leak question.
I'm trying to figure out a possible memory leak in my C program. I get the following message from valgrind:
16,020 bytes in 1 blocks are still reachable in loss record 1 of 1
at 0x4A04B32: calloc (vg_replace_malloc.c:279)
by 0x38932D57BF: monstartup (in /lib64/libc-2.5.so)
by 0x400B4B: __gmon_start__ (in "my app".o)
by 0x400B6D: (within "my app".o)
definitely lost: 0 bytes in 0 blocks.
possibly lost: 0 bytes in 0 blocks.
still reachable: 16,020 bytes in 1 blocks.
suppressed: 0 bytes in 0 blocks.
This doesn't seem to happen with any of "my" memory allocation (none of which are of 16020 bytes). Is this leak "my fault" - is there anything I can do about it? It happens quite randomly - I can try to do the excact same operation several times, and it's a 50-50 chance I'll get this error or "No leaks possible".
Any help would be very much appreciated!
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Strange memory problems or memory leak in OS???||OldGuyTom||OS X 10.8 Mountain Lion||12||Oct 11, 2013 02:47 PM|
|Memory Leak||RagingGoat||iPhone/iPad Programming||16||Aug 2, 2013 10:29 PM|
|iPhone: Help with Memory Leak||Stixx31||Jailbreaks and iOS Hacks||9||May 3, 2013 03:56 AM|
|Memory leak||spilakalb||iPhone/iPad Programming||5||Oct 4, 2012 08:15 AM|
|What's a memory leak||3bs||Alternatives to iOS and iOS Devices||10||Sep 16, 2012 06:23 PM|
All times are GMT -5. The time now is 10:29 AM.