diff options
author | 2022-11-25 00:14:01 -0800 | |
---|---|---|
committer | 2022-11-25 00:14:01 -0800 | |
commit | 64871b2bfbfa31e99d66ea875847df603dbdc5bd (patch) | |
tree | f2481ff9677d220d3b87416b5ecb296c92c3c8f6 | |
parent | ce2cdb44e1ec7182c0177737e4cbda956ff31702 (diff) | |
download | bun-64871b2bfbfa31e99d66ea875847df603dbdc5bd.tar.gz bun-64871b2bfbfa31e99d66ea875847df603dbdc5bd.tar.zst bun-64871b2bfbfa31e99d66ea875847df603dbdc5bd.zip |
Fix spurious assertion
-rw-r--r-- | src/memory_allocator.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memory_allocator.zig b/src/memory_allocator.zig index e131a76da..9918c9c45 100644 --- a/src/memory_allocator.zig +++ b/src/memory_allocator.zig @@ -109,7 +109,7 @@ const CAllocator = struct { // so it's faster if we don't pass that value through // but its good to have that assertion if (comptime Environment.allow_assert) { - assert(mimalloc.mi_check_owned(buf.ptr)); + assert(mimalloc.mi_is_in_heap_region(buf.ptr)); mimalloc.mi_free_size_aligned(buf.ptr, buf.len, buf_align); } else { mimalloc.mi_free(buf.ptr); |