diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-02 15:39:08 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-06-02 15:39:08 +0100 |
commit | 8c02a9bddc932422c84ebe45b391d1d52e267295 (patch) | |
tree | 54ac79d887fbd6183e50f05b868294aef515b955 /src/libutil/mem_pool.c | |
parent | 0ea297d18f73e96247af1081993a05a36f75ccee (diff) | |
download | rspamd-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.c | 2 |
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); |