mirror of
https://codeberg.org/andyscott/marCsweep.git
synced 2024-11-09 13:50:51 -05:00
malloc: set curr properly for destroy_heap
This commit is contained in:
parent
e8f5fa88b5
commit
87dfec1942
1 changed files with 1 additions and 1 deletions
|
@ -228,6 +228,6 @@ void destroy_heap(struct gc_chunk *freelist)
|
||||||
while (curr->size != 0) {
|
while (curr->size != 0) {
|
||||||
struct gc_chunk *next = curr->next;
|
struct gc_chunk *next = curr->next;
|
||||||
munmap(curr, curr->size);
|
munmap(curr, curr->size);
|
||||||
curr = curr->next;
|
curr = next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue