Fixed various memory leaks and enabled memory tracking for debug builds.

git-svn-id: https://svn.code.sf.net/p/flaim/code/trunk@571 0109f412-320b-0410-ab79-c3e0c5ffbbe6
This commit is contained in:
ahodgkinson
2006-06-13 21:13:24 +00:00
parent 8ee3ed8699
commit f5aa2e1a0d
10 changed files with 59 additions and 45 deletions

View File

@@ -6137,10 +6137,14 @@ RCODE ScaGetBlock(
FFILE * pFile = pDb->pFile;
FLMBOOL bGotFromDisk = FALSE;
flmAssert( uiBlkAddress != 0);
*ppSCacheRV = NULL;
if( !uiBlkAddress)
{
rc = RC_SET_AND_ASSERT( FERR_ILLEGAL_OP);
goto Exit;
}
// We should NEVER be attempting to read a block address that is
// beyond the current logical end of file.