Commit 34bcf805 authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

support free(NULL), which is valid ANSI C

parent 86d63135
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment