#[unsafe(no_mangle)]pub unsafe extern "C" fn malloc(size: size_t) -> *mut c_voidExpand 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".