2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
6 .. index:: FREE, pointer, cray
13 .. function:: FREE(PTR)
15 Frees memory previously allocated by ``MALLOC``. The ``FREE``
16 intrinsic is an extension intended to be used with Cray pointers, and is
17 provided in GNU Fortran to allow user to compile legacy code. For
18 new code using Fortran 95 pointers, the memory de-allocation intrinsic is
22 The type shall be ``INTEGER``. It represents the
23 location of the memory that should be de-allocated.
35 .. code-block:: fortran
40 See ``MALLOC`` for an example.