[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

## 9.100 FreeMem

### Synopsis

    procedure FreeMem (var p: Pointer; Size: Cardinal);

or

    procedure FreeMem (var p: Pointer);

### Description

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.

### Conforming to

``FreeMem'` is a Borland Pascal extension. ``FreeMem'` with only one parameter is a GNU Pascal extension.

### Example

See section 9.104 GetMem.

### See also

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.

This document was generated by Frank Heckenbach on May, 10 2002 using texi2html