sx_MemDealloc

<< Click to Display Table of Contents >>

Navigation:  Apollo API Listing >

sx_MemDealloc

C Declaration

VOID FAR PASCAL sx_MemDealloc(VOIDP vpPtr);

Description

De-allocate memory allocated by sx_MemAlloc. This function only frees memory that was allocated by sx_MemAlloc or reallocated with sx_MemRealloc. Do not use it to free memory allocated by any other means.

Parameters

vpPtr: A pointer to memory that was returned by sx_MemAlloc or sx_MemRealloc.

C Example

// if error, sDbOpenInfo.uiArea is set to ZERO by

// the functable->open function

if (!sDbOpenInfo.uiArea)

{

sx_MemDealloc(spTask->apItem[i].wpWorkArea->FuncTable);

sx_MemDealloc(spTask->apItem[i].wpWorkArea);

spTask->apItem[i].wpWorkArea = 0;

spTask->apItem[i].uiFileType = 0;

return((SHORT) sDbOpenInfo.uiArea);

}

See Also

sx_MemAlloc , sx_MemRealloc