aboutsummaryrefslogtreecommitdiffstats
path: root/DebugMemory.c
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:20 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:20 +0200
commitea859f50d9438bc61ae96721a4d255b49de78653 (patch)
treebfb52a5f403ad1e86c562b2f4d608d1268fe8fcf /DebugMemory.c
parent266ab52b3a741a58fb17c48b0f7939d7c5d266de (diff)
downloaddebian_htop-ea859f50d9438bc61ae96721a4d255b49de78653.tar.gz
debian_htop-ea859f50d9438bc61ae96721a4d255b49de78653.tar.bz2
debian_htop-ea859f50d9438bc61ae96721a4d255b49de78653.zip
Imported Upstream version 0.6.2upstream/0.6.2
Diffstat (limited to 'DebugMemory.c')
-rw-r--r--DebugMemory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/DebugMemory.c b/DebugMemory.c
index 8f28af6..6e5156d 100644
--- a/DebugMemory.c
+++ b/DebugMemory.c
@@ -141,6 +141,8 @@ void DebugMemory_registerAllocation(void* data, char* file, int line) {
}
void DebugMemory_registerDeallocation(void* data, char* file, int line) {
+ if (!data)
+ return;
assert(singleton);
assert(singleton->first);
DebugMemoryItem* walk = singleton->first;

© 2014-2024 Faster IT GmbH | imprint | privacy policy