change set_malloc_handler

set_malloc_handler must return the old handler