next up previous contents index
Next: 11.4.5 getsize: Inquire about Up: 11.4 Memory Interface Previous: 11.4.3 alloc_aligned: Allocate a

11.4.4 free: Free a chunk of memory

 

SYNOPSIS

#include <oskit/com/mem.h>

void oskit_mem_free(oskit_mem_t *m, void *ptr, oskit_u32_t size, oskit_u32_t flags);

DESCRIPTION

Deallocate the chunk of memory pointed to by ptr. The flags must include OSKIT_MEM_AUTO_SIZE if the original allocation did, otherwise size must properly give the size of the original allocation.

PARAMETERS

m
The memory object to operate on.
ptr
The chunk to deallocate.
size
The size (in bytes) of the original allocation request if the chunk was not allocated with OSKIT_MEM_AUTO_SIZE.
flags
Options and constraints.



Utah Flux Research Group