Function malloc

Source
#[no_mangle]
pub unsafe extern "C" fn malloc(size: size_t) -> *mut c_void
Expand description

When this library is loaded with LD_PRELOAD, this malloc implementation catches malloc calls performed by the program and records them in the malloc_freq profile before invoking the original libc malloc.

ยงSafety

This method internally uses libc::malloc, which is unsafe extern "C".