next up previous contents index
Next: 9.5.9 smalloc: allocated uninitialized Up: 9.5 Memory Allocation Previous: 9.5.7 realloc: change the

9.5.8 free: release an allocated memory block

   

SYNOPSIS

#include <oskit/c/malloc.h>

void free(void *buf);

DESCRIPTION

Standard issue free function. Calls lmm_free to release the memory.

Note that free must only be called with memory allocated by one of: malloc, realloc, calloc, mustmalloc, mustcalloc, mallocf, memalign, or memalignf.

PARAMETERS

buf
Pointer to memory to be freed.



University of Utah Flux Research Group