munmap: fix memory leak

This commit is contained in:
Matheus
2024-04-21 20:16:01 -03:00
parent c62cfad164
commit f827163056
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -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;