fix link error to _mi_bin with C++; issue #533

This commit is contained in:
Daan 2022-01-22 10:08:16 -08:00
parent 6401c6325a
commit a4303c6931
3 changed files with 12 additions and 8 deletions

View file

@ -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;