proper leak detective hook for realloc