 One thread could temporarily remove the hook while another thread could malloc memory at the sametime leading to missed allocations in a multithreaded application!The function codice_1 installs handlers for codice_4, codice_5 and codice_6; the function codice_7 disables these handlers.Their prototypes, defined in the header file codice_8, are

The handlers log all memory allocations and frees to a file defined by the environment variable MALLOC_TRACE (if the variable is unset, describes an invalid filename, or describes a filename the user does not have permissions to, the handlers are not installed).