DEALLOCATE Statement

The DEALLOCATE statement causes the contents of the specified array row or procedure reference array row to be discarded and the memory area to be returned to the system.

Notes:
  • The DEALLOCATE statement cannot be used for task arrays or structure block arrays.

  • When a procedure reference array is imported from a library, it cannot be deallocated using the DEALLOCATE statement. An attempt to deallocate an imported procedure reference array results in a compile-time or run-time error.

<deallocate statement>

── DEALLOCATE ── ( ─┬─<array row>─────────────────────┬─ ) ────────────┤
                    └─<procedure reference array row>─┘