aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libutil/mem_pool.c2
1 files changed, 1 insertions, 1 deletions
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);