Hi people,
I seem to have an impossible-to-fix memory leak in my program. To try to fix it, I'd like to be able to tell how much memory is currently available, so I can check if I'm freeing stuff properly at different points in the program. Anyone know how to do this?
I've tried using system("free") commands (I'm using Linux), but that doesn't seem to work - the amount of free memory listed doesn't change directly after a malloc.
I'd be grateful for any suggestions...
Thanks,
Justin