free function

void free(
  1. Pointer<NativeType> pointer
)

Frees allocated memory.

calloc.free and malloc.free do the same thing, so this works regardless of whether memory was zero-allocated on creation or not.

Implementation

void free(Pointer pointer) => calloc.free(pointer);