From 65a22a5ff70d95bbcb04f8c1dcae3eb1ca784282 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 21 Aug 2007 05:04:02 +0000 Subject: [PATCH] In pool_free_old(), one code path was not clearing a "next" pointer, so the code could try to free an extent twice in certain circumstances. --- lib/pool_alloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pool_alloc.c b/lib/pool_alloc.c index e1ce50b3..0fb31225 100644 --- a/lib/pool_alloc.c +++ b/lib/pool_alloc.c @@ -255,6 +255,7 @@ pool_free_old(alloc_pool_t p, void *addr) cur->free -= skew; } next = cur->next; + cur->next = NULL; } } else { next = cur->next; -- 2.34.1