zephyr::raw

Function k_free

source
pub unsafe extern "C" fn k_free(ptr: *mut c_void)
Expand description

@brief Free memory allocated from heap.

This routine provides traditional free() semantics. The memory being returned must have been allocated from the heap memory pool.

If @a ptr is NULL, no operation is performed.

@param ptr Pointer to previously allocated memory.