Fixed a crash in LeakFinder when out of memory
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1265 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
e70251a7fc
commit
9931b5634b
@ -427,6 +427,11 @@ public:
|
||||
|
||||
pHashEntry->Next = (AllocHashEntryType*) own_malloc(sizeof(AllocHashEntryType));
|
||||
pHashEntry = pHashEntry->Next;
|
||||
if (pHashEntry == NULL)
|
||||
{
|
||||
// Exhausted the available memory?
|
||||
return;
|
||||
}
|
||||
}
|
||||
pHashEntry->key = key;
|
||||
pHashEntry->nDataSize = nDataSize;
|
||||
|
Loading…
Reference in New Issue
Block a user