writing my own version of malloc() (and his best friend Mr. free()), I need to know if I free'd my memory correctly. Seems that I can't use valgrind because it checks for the libc'malloc, and mine is in a shared library loaded with LD_PRELOAD.
Currently if I use valgrind it says "0alloc 0free 0leak, everything is good", because it does not detect the allocations I did with MY malloc. (I use (s)brk() functions)
Does someone know if there's a way to check with valgrind anyways or with sth else ?
Thanks !