From: Vsevolod Stakhov Date: Tue, 2 Jun 2015 14:39:08 +0000 (+0100) Subject: Prepend the correct object. X-Git-Tag: 1.0.0~579 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8c02a9bddc932422c84ebe45b391d1d52e267295;p=rspamd.git Prepend the correct object. --- diff --git a/src/libutil/mem_pool.c b/src/libutil/mem_pool.c index ec6e4010a..3d439ed01 100644 --- a/src/libutil/mem_pool.c +++ b/src/libutil/mem_pool.c @@ -372,7 +372,7 @@ rspamd_mempool_alloc_shared (rspamd_mempool_t * pool, gsize size) size + pool->elt_len + MEM_ALIGNMENT); } /* Attach new pool to chain */ - LL_PREPEND (pool->shared_pool, cur); + LL_PREPEND (pool->shared_pool, new); tmp = new->pos; new->pos = tmp + size; g_atomic_int_add (&mem_pool_stat->bytes_allocated, size);