<< Click to Display Table of Contents >> Navigation: Apollo API Listing > sx_MemDealloc |
VOID FAR PASCAL sx_MemDealloc(VOIDP vpPtr);
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.
vpPtr: A pointer to memory that was returned by sx_MemAlloc or sx_MemRealloc.
// 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);
}