writing my own version of malloc () (and his best friend Mr. free ()), I need to know if I freed up my memory correctly. I can't seem to use valgrind because it checks libc'malloc and mine is in the shared library loaded by LD_PRELOAD.
Currently, if I use valgrind, it says: "0alloc 0free 0leak, all is well," because it does not detect the distributions I made with MY malloc. (I use brk () functions)
Does anyone know if there is a way to check with valgrind anyway or with another?
Thanks!
source
share