FREE

9.106 FREE — Frees memory

Description:
Frees memory previously allocated by MALLOC. The FREE intrinsic is an extension intended to be used with Cray pointers, and is provided in GNU Fortran to allow user to compile legacy code. For new code using Fortran 95 pointers, the memory de-allocation intrinsic is DEALLOCATE.
Standard:
GNU extension
Class:
Subroutine
Syntax:
CALL FREE(PTR)
Arguments:
PTR The type shall be INTEGER. It represents the location of the memory that should be de-allocated.
Return value:
None
Example:
See MALLOC for an example.
See also:
MALLOC

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-5.4.0/gfortran/FREE.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部