summaryrefslogtreecommitdiffstats
path: root/source/LeakFinder.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-11 18:10:00 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-11 18:10:00 +0100
commit9931b5634b2ecafdb3a973dba1c93ee69d221f11 (patch)
treeffba240ab23cc7a355294bb34df95e45bba2386b /source/LeakFinder.cpp
parentAnvil: Removed excessive debugging output (diff)
downloadcuberite-9931b5634b2ecafdb3a973dba1c93ee69d221f11.tar
cuberite-9931b5634b2ecafdb3a973dba1c93ee69d221f11.tar.gz
cuberite-9931b5634b2ecafdb3a973dba1c93ee69d221f11.tar.bz2
cuberite-9931b5634b2ecafdb3a973dba1c93ee69d221f11.tar.lz
cuberite-9931b5634b2ecafdb3a973dba1c93ee69d221f11.tar.xz
cuberite-9931b5634b2ecafdb3a973dba1c93ee69d221f11.tar.zst
cuberite-9931b5634b2ecafdb3a973dba1c93ee69d221f11.zip
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;