From f0be38584fd9555ac8875fa8ad5b09861cd5cfab Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 14 Jan 2016 14:38:21 +0000 Subject: [PATCH] Another fix to always-malloc mode --- src/libutil/mem_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libutil/mem_pool.c b/src/libutil/mem_pool.c index 5ef6f9de8..20050987e 100644 --- a/src/libutil/mem_pool.c +++ b/src/libutil/mem_pool.c @@ -296,7 +296,7 @@ memory_pool_alloc_common (rspamd_mempool_t * pool, gsize size, if (pool) { POOL_MTX_LOCK (); - if (always_malloc) { + if (always_malloc && pool_type != RSPAMD_MEMPOOL_SHARED) { void *ptr; ptr = g_malloc (size); -- 2.39.5