summaryrefslogtreecommitdiff
path: root/src/runtime/c/gu/mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/c/gu/mem.c')
-rw-r--r--src/runtime/c/gu/mem.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/runtime/c/gu/mem.c b/src/runtime/c/gu/mem.c
index 62ffef85d..cc168637e 100644
--- a/src/runtime/c/gu/mem.c
+++ b/src/runtime/c/gu/mem.c
@@ -311,9 +311,8 @@ gu_pool_free(GuPool* pool)
{
GuFinalizerNode* node = pool->finalizers;
while (node) {
- GuFinalizerNode* next = node->next;
node->fin->fn(node->fin);
- node = next;
+ node = node->next;
}
GuMemChunk* chunk = pool->chunks;
while (chunk) {