diff --git a/src/heapwalk.cpp b/src/heapwalk.cpp index f6e2b746fe..12128a6dd1 100644 --- a/src/heapwalk.cpp +++ b/src/heapwalk.cpp @@ -88,7 +88,7 @@ class Context { while (stack) { Stack* dead = stack; stack = dead->next; - thread->m->heap->free(stack, sizeof(Stack)); + thread->m->heap->free(dead, sizeof(Stack)); } }