Function Mallocator.deallocate

Deallocates a memory block.

bool deallocate (
  void[] p
);

Parameters

NameDescription
p A pointer to the memory block to be freed.

Returns

Whether the deallocation was successful.

Example

void[] p;
assert(Mallocator.instance.deallocate(p));

p = Mallocator.instance.allocate(10);
assert(Mallocator.instance.deallocate(p));