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 ia32 processors; INTEGER(8) on Alpha and ia64 processors. This value is the starting address of the memory to be freed, previously allocated by MALLOC (see Section 9.3.92).

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