From 7110655e794da1fdc7780a076c5493c900526409 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Tue, 24 Sep 2024 23:09:21 +0100 Subject: [PATCH] override malloc, aligned_alloc calling libc::aligned_alloc --- src/snmalloc/override/malloc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snmalloc/override/malloc.cc b/src/snmalloc/override/malloc.cc index 9c0571f74..cbef9428c 100644 --- a/src/snmalloc/override/malloc.cc +++ b/src/snmalloc/override/malloc.cc @@ -84,7 +84,7 @@ extern "C" SNMALLOC_EXPORT void* SNMALLOC_NAME_MANGLE(aligned_alloc)(size_t alignment, size_t size) { - return snmalloc::libc::memalign(alignment, size); + return snmalloc::libc::aligned_alloc(alignment, size); } SNMALLOC_EXPORT int SNMALLOC_NAME_MANGLE(posix_memalign)(