diff --git a/ircd/db_allocator.cc b/ircd/db_allocator.cc index 6102407ce..18bb87622 100644 --- a/ircd/db_allocator.cc +++ b/ircd/db_allocator.cc @@ -480,8 +480,11 @@ const noexcept #endif }; - assert(ret % alignment == 0); - assert(alignment % sizeof(void *) == 0); + #ifndef IRCD_ALLOCATOR_USE_JEMALLOC + assert(ret % alignment == 0); + assert(alignment % sizeof(void *) == 0); + #endif + return ret; }