Skip to content

Commit b407e92

Browse files
committed
---
yaml --- r: 3148 b: refs/heads/master c: 02c0501 h: refs/heads/master v: v3
1 parent 4480701 commit b407e92

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 4673eb6839852b3902dc6855cce48d195c3b4092
2+
refs/heads/master: 02c0501a6185da2d3bfce2be1b2bc02abbd36bb9

trunk/src/rt/memory_region.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ memory_region::memory_region(memory_region *parent) :
2121

2222
void memory_region::free(void *mem) {
2323
// printf("free: ptr 0x%" PRIxPTR"\n", (uintptr_t) mem);
24+
if (!mem) { return; }
2425
if (_synchronized) { _lock.lock(); }
2526
#ifdef TRACK_ALLOCATIONS
2627
if (_allocation_list.replace(mem, NULL) == false) {

0 commit comments

Comments
 (0)