Unit 'EXEC' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

FreePooled

Free pooled memory block

Declaration

Source position: exec.pas line 1240

procedure FreePooled(

  poolHeader: POINTER;

  memory: POINTER;

  memSize: LongWord

);

Arguments

poolHeader

  

A pointer to the pool this memory block belongs to.

memory

  

Pointer to the memory to free.

memSize

  

Number of bytes to free. Must match the size used when AllocPooled was done.

Description

Free a memory block which belongs to a memory pool. The block is removed from the pool. Only Memory allocated with AllocPooled() are freed with this function.

See also

AllocPooled

  

Allocate memory in a memory pool

CreatePool

  

Create a new pool for memory allocations

DeletePool

  

Free a memory pool


Documentation generated on: 2021-07-30