aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/mem_pool.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-06-02 15:39:08 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-06-02 15:39:08 +0100
commit8c02a9bddc932422c84ebe45b391d1d52e267295 (patch)
tree54ac79d887fbd6183e50f05b868294aef515b955 /src/libutil/mem_pool.c
parent0ea297d18f73e96247af1081993a05a36f75ccee (diff)
downloadrspamd-8c02a9bddc932422c84ebe45b391d1d52e267295.tar.gz
rspamd-8c02a9bddc932422c84ebe45b391d1d52e267295.zip
Prepend the correct object.
Diffstat (limited to 'src/libutil/mem_pool.c')
-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 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);