]> source.dussan.org Git - rspamd.git/commitdiff
Prepend the correct object.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 2 Jun 2015 14:39:08 +0000 (15:39 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 2 Jun 2015 14:39:08 +0000 (15:39 +0100)
src/libutil/mem_pool.c

index ec6e4010aebd4ca2df372c1ae84946cfc99d4759..3d439ed01db4214d4f9a29544b4bf0f81b6365b1 100644 (file)
@@ -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);