Verified Commit 6f796685 authored by xu_zh's avatar xu_zh
Browse files

fix: munmap_all release all buffer

parent 87f2bdc8
No related merge requests found
Pipeline #8087 failed with stages
in 1 minute and 4 seconds
Showing with 3 additions and 0 deletions
+3 -0
......@@ -149,6 +149,9 @@ void fs_munmap_all(std::list<mmap_t *> &mmap_list) {
uint8_t *data = mmap->data;
size_t npage = mmap->npage;
mmap_write(mmap);
for (auto it : mmap->buf) {
buf_release(it);
}
mmap_allocator.destroy(mmap);
mmap_list.pop_front();
free_npage(pcb, (uintptr_t) data, npage);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment