[bugfix] memory leak

This commit is contained in:
Yuichi Nishiwaki 2015-07-16 15:28:30 +09:00
parent 46e3665970
commit 1c77115c56
1 changed files with 2 additions and 0 deletions

View File

@ -48,8 +48,10 @@ pic_heap_close(pic_state *pic, struct pic_heap *heap)
while (heap->pages) {
page = heap->pages;
heap->pages = heap->pages->next;
pic_free(pic, page->basep);
pic_free(pic, page);
}
pic_free(pic, heap);
}
static void gc_free(pic_state *, union header *);