mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-05 20:48:04 +00:00
sys/linux: munmap was not using the correct syscall
This commit is contained in:
@@ -161,7 +161,7 @@ mprotect :: proc "contextless" (addr: rawptr, size: uint, prot: Mem_Protection)
|
||||
/// Unmap memory
|
||||
/// Available since Linux 1.0
|
||||
munmap :: proc "contextless" (addr: rawptr, size: uint) -> (Errno) {
|
||||
ret := syscall(SYS_mmap, addr, size)
|
||||
ret := syscall(SYS_munmap, addr, size)
|
||||
return Errno(-ret)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user