mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-10 03:04:36 +03:00
support free(NULL), which is valid ANSI C
This commit is contained in:
@ -141,6 +141,8 @@ void DebugMemory_registerAllocation(void* data, char* file, int line) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void DebugMemory_registerDeallocation(void* data, char* file, int line) {
|
void DebugMemory_registerDeallocation(void* data, char* file, int line) {
|
||||||
|
if (!data)
|
||||||
|
return;
|
||||||
assert(singleton);
|
assert(singleton);
|
||||||
assert(singleton->first);
|
assert(singleton->first);
|
||||||
DebugMemoryItem* walk = singleton->first;
|
DebugMemoryItem* walk = singleton->first;
|
||||||
|
Reference in New Issue
Block a user