summaryrefslogtreecommitdiffstats
path: root/source/LeakFinder.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/LeakFinder.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/LeakFinder.cpp b/source/LeakFinder.cpp
index c1446291f..2702fb47a 100644
--- a/source/LeakFinder.cpp
+++ b/source/LeakFinder.cpp
@@ -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;