From 0766e962e9a9539ceccd23090e5bb8e1301fce8c Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 17 Jan 2001 08:32:28 +0000 Subject: Bug fix from Zheng Yuan . --- lib/mempool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/mempool.c b/lib/mempool.c index a27f2f4..ba95323 100644 --- a/lib/mempool.c +++ b/lib/mempool.c @@ -107,7 +107,7 @@ lp_alloc(linpool *m, unsigned size) c = xmalloc(sizeof(struct lp_chunk) + size); m->total_large += size; c->next = m->first_large; - m->first_large = c->next; + m->first_large = c; c->size = size; } else -- cgit v1.2.3