The ALLOC and FREE macros are provided to allocate general memory. They are not intended to create new variable storage. For that purpose the NEWXXX and NEWMORTALXXX macros should be used.
The memory allocated should usually be assigned to the THISPARAMPTR pointer (see PARAMPTR).
The macro ALLOC behaves similar to the system function malloc accepting the size of the required memory in bytes and returning a void pointer.
The macro FREE accepts the pointer to the allocated memory and returns nothing.
There is no need to release the allocated memory. The memory allocated using ALLOC is automatically release upon program termination.