free

fun <ERROR CLASS>.free(memory: Memory)

Release resources that the memory instance is holding. This function should be only used for memory instances that are produced by allocMemory function otherwise an undefined behaviour may occur including crash or data corruption.