From f5888ae382b9afdc1c1f26fff53e295b6739e9a6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 4 Dec 2021 14:40:50 +0000 Subject: [PATCH] [Minor] Fix arguments order --- src/libutil/mem_pool.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libutil/mem_pool.c b/src/libutil/mem_pool.c index 1b72ed7c4..6bb74b6e7 100644 --- a/src/libutil/mem_pool.c +++ b/src/libutil/mem_pool.c @@ -527,7 +527,8 @@ memory_pool_alloc_common (rspamd_mempool_t * pool, gsize size, gsize alignment, g_atomic_int_add (&mem_pool_stat->fragmented_size, free); pool->priv->entry->elts[pool->priv->entry->cur_elts].fragmentation += free; - new = rspamd_mempool_chain_new (alignment, size + pool->priv->elt_len, pool_type); + new = rspamd_mempool_chain_new (size + pool->priv->elt_len, alignment, + pool_type); } /* Connect to pool subsystem */ -- 2.39.5