From f1df3d43bb4e6ce9d269a4f75945e0fa25966c19 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Sat, 28 Sep 2024 22:02:40 +0100 Subject: [PATCH] override malloc, aligned_alloc calling libc::aligned_alloc (#681) --- 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)(