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:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user