diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-14 14:38:21 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-14 14:38:21 +0000 |
commit | f0be38584fd9555ac8875fa8ad5b09861cd5cfab (patch) | |
tree | 428178114aca86a6b3d517d790310ee03695bfd0 /src/libutil/mem_pool.c | |
parent | 91516a1fd63de8423db146794f72bff8ec0191fa (diff) | |
download | rspamd-f0be38584fd9555ac8875fa8ad5b09861cd5cfab.tar.gz rspamd-f0be38584fd9555ac8875fa8ad5b09861cd5cfab.zip |
Another fix to always-malloc mode
Diffstat (limited to 'src/libutil/mem_pool.c')
-rw-r--r-- | src/libutil/mem_pool.c | 2 |
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); |