VoiceComplaint(stackFrame,th,"FreePooled(0x%08lx,0x%08lx,%ld) called on puddle in wrong pool (right=0x%08lx wrong=0x%08lx)\n",poolHeader,memoryBlock,memSize,th->th_PoolHeader->ph_PoolHeader,poolHeader);
hit = TRUE;
DumpPoolOwner(th->th_PoolHeader);
ph = FindPoolHeader(poolHeader);
if(ph != NULL)
DumpPoolOwner(ph);
}
freeIt = FALSE;
}
if(th->th_Type != ALLOCATIONTYPE_AllocPooled)
{
if(IsActive)
{
VoiceComplaint(stackFrame,th,"In FreePooled(0x%08lx,0x%08lx,%ld): Memory was not allocated with AllocPooled()\n",poolHeader,memoryBlock,memSize);
hit = TRUE;
}
freeIt = FALSE;
}
if(freeIt)
{
PerformDeallocation(th);
}
else
{
/* Let it go, but don't deallocate it. */
th->th_Magic = 0;
FixTrackHeaderChecksum(th);
}
}
else
{
if(IsActive)
{
VoiceComplaint(stackFrame,NULL,"FreePooled(0x%08lx,0x%08lx,%ld) called on puddle that is not in pool\n",poolHeader,memoryBlock,memSize);