]> source.dussan.org Git - rspamd.git/commitdiff
Another fix to always-malloc mode
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 14 Jan 2016 14:38:21 +0000 (14:38 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 14 Jan 2016 14:38:21 +0000 (14:38 +0000)
src/libutil/mem_pool.c

index 5ef6f9de891dff259f290f5b7658ca4937afb49d..20050987ed41766d25fd0b2b555f6ec856a126fd 100644 (file)
@@ -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);