System.FreeMemory

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FreeMemory(P: Pointer): Integer; cdecl;

C++

extern DELPHI_PACKAGE int __cdecl FreeMemory(void * P);

Properties

Type Visibility Source Unit Parent
function public
System.pas
System.hpp
System System

Description

FreeMemory frees a memory block previously allocated with GetMemory.

Use this procedure to dispose of a memory block obtained with GetMemory. If the memory is successfully deallocated, the return value is 0, otherwise the return value is nonzero.

Note: FreeMemory is the C++ compatible version of FreeMem.

See Also

Code Examples