--- a/userlibandfileserver/fileserver/sfile/sf_cache.cpp Wed Mar 31 23:38:45 2010 +0300
+++ b/userlibandfileserver/fileserver/sfile/sf_cache.cpp Wed Apr 14 17:22:59 2010 +0300
@@ -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)
{