9.3.55 FREE (A)

Description:  Frees a block of memory that is currently allocated. 
Class:  Subroutine 
Arguments:  A must be of type INTEGER(4) on Windows NT and Windows 9* systems; INTEGER(8) on OpenVMS, Tru64 UNIX, and Linux systems. This value is the starting address of the memory to be freed, previously allocated by MALLOC (see Section 9.3.91).

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

Examples

Consider the following:

INTEGER(4) ADDR, SIZE
SIZE = 1024                   ! Size in bytes
ADDR = MALLOC(SIZE)           ! Allocate the memory
CALL FREE(ADDR)               ! Free it
END


Previous Page Next Page Table of Contents