#include <oskit/com/mem.h>void oskit_mem_free(oskit_mem_t *m, void *ptr, oskit_u32_t size, oskit_u32_t flags);
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.
- 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.