From d2a2508af37cd3aaef73c10f80d6e0c18ca678c5 Mon Sep 17 00:00:00 2001 From: daan Date: Thu, 27 Jun 2019 13:33:53 -0700 Subject: [PATCH] fix overly restrictive assertion --- src/segment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/segment.c b/src/segment.c index 18c7628..e98eee5 100644 --- a/src/segment.c +++ b/src/segment.c @@ -688,6 +688,6 @@ mi_page_t* _mi_segment_page_alloc(size_t block_size, mi_segments_tld_t* tld, mi_ page = mi_segment_large_page_alloc(tld, os_tld); else page = mi_segment_huge_page_alloc(block_size,tld,os_tld); - mi_assert_expensive(mi_segment_is_valid(_mi_page_segment(page))); + mi_assert_expensive(page == NULL || mi_segment_is_valid(_mi_page_segment(page))); return page; }