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 4480701 commit b407e92Copy full SHA for b407e92
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 4673eb6839852b3902dc6855cce48d195c3b4092
+refs/heads/master: 02c0501a6185da2d3bfce2be1b2bc02abbd36bb9
trunk/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