Skip to content

Free

See Also: Memory Management Functions

Purpose

Frees a block of memory.

Return Type

Boolean

Syntax

Free({pSomeAddress})

Parameters

  • {pSomeAddress}: The Pointer to the memory block to be freed.

What It Does

Free is used to return allocated memory to the system. Use Free to dispose of all allocations made by Alloc.

Example

Boolean bRetVal
Pointer aPointer
Move (Free(aPointer)) to bRetVal
If (bRetVal) Begin
    // do something
End