forked from rcore-os/zCore
Fix memory leak in sys_vmo_replace_as_executable (#97)
This commit is contained in:
parent
3bb5974aa2
commit
2a02dbfad5
|
@ -93,6 +93,7 @@ impl Syscall<'_> {
|
|||
let new_handle = proc.dup_handle_operating_rights(handle, |handle_rights| {
|
||||
Ok(handle_rights | Rights::EXECUTE)
|
||||
})?;
|
||||
proc.remove_handle(handle)?;
|
||||
out.write(new_handle)?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue