mirror of
https://codeberg.org/andyscott/marCsweep.git
synced 2024-12-22 01:33:11 -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) {
|
||||
struct gc_chunk *next = curr->next;
|
||||
munmap(curr, curr->size);
|
||||
curr = curr->next;
|
||||
curr = next;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue