Home  /  Autodocs  /  exec.library

NAME

FreeEntry
free many regions of memory

SYNOPSIS

FreeEntry(memList)
A0

void FreeEntry(struct MemList *);

FUNCTION

This function takes a MemList structure, as returned by AllocEntry(), frees all the MemEntry structures first and finally the MemList structure itself.

INPUTS

memList
Pointer to the MemList structure filled in with MemEntry structures.

WARNING

The AllocEntry() function never returns NULL and instead indicates memory allocation failure by setting bit #31 of the result it returns. Never call FreeEntry() on the result of AllocEntry() unless you have verified that the result is a valid pointer, like so:

if ((((ULONG)memList) & 0x80000000) != 0 && memList != NULL)

FreeEntry(memList);

SEE ALSO

AllocEntry()