cf_arena_free¶
Category: allocator
GitHub: cute_alloc.h
Frees the most recent allocation(s) from the arena.
Parameters | Description |
---|---|
arena | The arena from which to free memory. |
size | The size of the most recent allocation to free. |
Remarks¶
This supports freeing memory in a Last-In-First-Out (LIFO) order, meaning only the most recent allocation(s) can be freed. It does not support freeing allocations in arbitrary order. Minimal error checking is performed, so only call this function if you know what you're doing, otherwise you'll get memory corruption issues.