[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
procedure FreeMem (var p: Pointer; Size: Cardinal); |
procedure FreeMem (var p: Pointer); |
Releases a chunk of memory previously allocated using `GetMem'. The parameter Size is optional, and its value is ignored.
Since Extended Pascal's schemata provide a cleaner way to implement dynamical arrays and such, we recommend using `GetMem' and `FreeMem' only for low-level applications or for interfacing with other languages.
`FreeMem' is a Borland Pascal extension. `FreeMem' with only one parameter is a GNU Pascal extension.
See section 9.104 GetMem.
section 9.104 GetMem, section 8.2.10.6 EP's Schema Types including `String', section 9.63 Dispose, section 9.149 Mark, section 9.224 Release.