FREE

Intrinsic Subroutine: Frees a block of memory that is currently allocated.

Syntax

CALL FREE (i)

i
(Input) Must be of type INTEGER(4) on ia32 processors; INTEGER(8) on Alpha and ia64 processors. This value is the starting address of the memory block to be freed, previously allocated by MALLOC.

If the freed address was not previously allocated by MALLOC, or if an address is freed more than once, results are unpredictable.

Compatibility

CONSOLE STANDARD GRAPHICS QUICKWIN GRAPHICS WINDOWS DLL LIB

Example

  INTEGER(4) addr, size
  size = 1024            ! size in bytes
  addr = MALLOC(size)    ! allocate the memory
  CALL FREE(addr)        ! free it
  END