Skip to content

Commit

Permalink
override malloc, aligned_alloc calling libc::aligned_alloc (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Sep 28, 2024
1 parent ab4fe84 commit f1df3d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/snmalloc/override/malloc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)(
Expand Down

0 comments on commit f1df3d4

Please sign in to comment.