summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/pool_alloc.c1
1 files changed, 1 insertions, 0 deletions
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;