free method

void free(
  1. int ptr
)

Frees a malloc allocation.

Implementation

void free(int ptr) {
  if (ptr != 0) call('free', [ptr.toJS]);
}