We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4673eb6 commit 02c0501Copy full SHA for 02c0501
src/rt/memory_region.cpp
@@ -21,6 +21,7 @@ memory_region::memory_region(memory_region *parent) :
21
22
void memory_region::free(void *mem) {
23
// printf("free: ptr 0x%" PRIxPTR"\n", (uintptr_t) mem);
24
+ if (!mem) { return; }
25
if (_synchronized) { _lock.lock(); }
26
#ifdef TRACK_ALLOCATIONS
27
if (_allocation_list.replace(mem, NULL) == false) {
0 commit comments