rem: ClearSemaphore (&_MemorySem);
add: ClearSemaphore (_MemorySem);
context: mem_uninit(void){	int i;	SetSemaphore (&_MemorySem);	for (i=0; i<MAX_EXTENTS; i++)	{		if (extents[i].handle != -1)		{printf ("LEAK: unreleased extent %d: %08x, %lu\n",		extents[i].handle, (unsigned int) extents[i].memory, extents[i].size);fflush (stdout);			extents[i].handle = -1;			if (extents[i].memory)			{				free (extents[i].memory);				extents[i].memory = 0;			}		}		extents[i].size = 0;	}	freeListHead = 0;	ClearSemaphore (&_MemorySem);	return (TRUE);}