Hi!
I'm currently working om my final year project but I've bumped into some
problems with an algorithm I'm implementing i C++.
After the program terminates all memory allocated isn't released by
either the program itself or the operating system. Before I executed the
program I typed
more /proc/meminfo
and it said that about 100 MB of physical memory was allocated. After
program termination meminfo stated that there was about 140 MB of
physical memory allocated. So.... about 40 MB went up in smock??
Shouldn't the operating system, Linux Mandrake 8.1 in my case, release
all memory allocted by a process, if the procces doesn't do this by it
self, when the process terminates? The program uses a memory mapped file
about 21 MB in size and a texture of about 10 MB which are both
unmapped/deallocated when before the program terminates. Does anyone
have any id what is going on? Is there any easy to use memory leak
tracker besides LeakTracker that can be used in conjunction with
new/delete?
Best regards,
/Michael Andersson