mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-29 13:48:21 +00:00
munmap: fix memory leak
This commit is contained in:
@@ -18,7 +18,7 @@ syscallret_t syscall_munmap(context_t *ctx, void *addr, size_t length) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
vmm_unmap(addr, length / PAGE_SIZE, 0);
|
||||
vmm_unmap(addr, length, 0);
|
||||
|
||||
ret.ret = 0;
|
||||
ret.errno = 0;
|
||||
|
||||
Reference in New Issue
Block a user