commit f5888ae: [Minor] Fix arguments order
Vsevolod Stakhov
vsevolod at highsecure.ru
Sat Dec 4 14:56:05 UTC 2021
Author: Vsevolod Stakhov
Date: 2021-12-04 14:40:50 +0000
URL: https://github.com/rspamd/rspamd/commit/f5888ae382b9afdc1c1f26fff53e295b6739e9a6
[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 */
More information about the Commits
mailing list