|
From: kalin <kal...@ya...> - 2005-11-24 00:52:24
|
Hi, I have begun to use valgrind, and i ran a simple program which simply allocated and dellacate memory using malloc and free. I find that the memory used is keeping on increasing (from system top command) and eventually the program crashes because the system is not able to allocate any more memory. However when i dont use valgrind and run it normally, I observer that the memory will increase when i use malloc and reduce when i use free. Why is this happening with valgrind and how can I overcome this. Any suggestion will be appreciated. Thank you Kalin |