mirror of https://github.com/xzeldon/htop.git
support free(NULL), which is valid ANSI C
This commit is contained in:
parent
86d6313560
commit
34bcf8050e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue