diff options
author | daan <daanl@outlook.com> | 2021-12-18 11:37:00 -0800 |
---|---|---|
committer | daan <daanl@outlook.com> | 2021-12-18 11:37:00 -0800 |
commit | f16435447c53d90b61f1bce6da90c4759d5d7f5b (patch) | |
tree | 5d62fcb778c864c99554dc26a76b35ba89c69389 /test | |
parent | 89090510bd965ca48a83857eaa6b6e78a951bf7e (diff) |
fix bug in freeing huge OS page allocation spanning multiple huge OS pages
Diffstat (limited to 'test')
-rw-r--r-- | test/test-api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-api.c b/test/test-api.c index 9681733..f057799 100644 --- a/test/test-api.c +++ b/test/test-api.c @@ -163,7 +163,7 @@ int main(void) { for (size_t align = 1; align <= MI_ALIGNMENT_MAX && ok; align *= 2) { void* ps[8]; for (int i = 0; i < 8 && ok; i++) { - ps[i] = mi_malloc_aligned(align/2 /*size*/, align); + ps[i] = mi_malloc_aligned(align*13 /*size*/, align); if (ps[i] == NULL || (uintptr_t)(ps[i]) % align != 0) { ok = false; } |