summaryrefslogtreecommitdiff
path: root/src/alloc.c
diff options
context:
space:
mode:
authorDaan <daanl@outlook.com>2022-01-22 10:08:16 -0800
committerDaan <daanl@outlook.com>2022-01-22 10:08:16 -0800
commita4303c69314a4f3799cdf9c6f90ef3aa10abca2f (patch)
tree6eeef1683e267637adba5574becc5c4e5edb3c52 /src/alloc.c
parent6401c6325ac5f014e1c8c96054ebbea0b63d0ad9 (diff)
fix link error to _mi_bin with C++; issue #533
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 53dd596..f8923a4 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -484,7 +484,7 @@ void mi_free(void* p) mi_attr_noexcept
mi_threadid_t tid = _mi_thread_id();
mi_page_t* const page = _mi_segment_page_of(segment, p);
mi_block_t* const block = (mi_block_t*)p;
-
+
if (mi_likely(tid == mi_atomic_load_relaxed(&segment->thread_id) && page->flags.full_aligned == 0)) { // the thread id matches and it is not a full page, nor has aligned blocks
// local, and not full or aligned
if (mi_unlikely(mi_check_is_double_free(page,block))) return;