diff -r a232af6b0b1f -r a5496987b1da userlibandfileserver/fileserver/sfile/sf_cache.cpp --- a/userlibandfileserver/fileserver/sfile/sf_cache.cpp Wed Jun 23 12:58:21 2010 +0100 +++ b/userlibandfileserver/fileserver/sfile/sf_cache.cpp Thu Jul 01 17:57:33 2010 +0100 @@ -610,8 +610,11 @@ if(r==KErrNoMemory) return r; + iCache = (TFileCacheRecord**)User::ReAlloc(pIndexes,sizeof(TFileCacheRecord*)*currentIndex); + if(!iCache) + return KErrNoMemory; + iNotPresent = EFalse; - iCache = (TFileCacheRecord**)User::ReAlloc(pIndexes,sizeof(TFileCacheRecord*)*currentIndex); iRecordCount = currentIndex; if (currentIndex>1) {