aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdiskfs/file-exec.c2
-rw-r--r--libdiskfs/init-startup.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/file-exec.c b/libdiskfs/file-exec.c
index 13afb7a9..45800506 100644
--- a/libdiskfs/file-exec.c
+++ b/libdiskfs/file-exec.c
@@ -161,7 +161,7 @@ diskfs_S_file_exec (struct protid *cred,
intarray, intarraylen,
deallocnames, deallocnameslen,
destroynames, destroynameslen);
- mach_port_deallocate (mach_task_self (), newpi)
+ mach_port_deallocate (mach_task_self (), right);
if (err == MACH_SEND_INVALID_DEST)
{
if (cached_exec)
diff --git a/libdiskfs/init-startup.c b/libdiskfs/init-startup.c
index 98e39ea1..26d98fe4 100644
--- a/libdiskfs/init-startup.c
+++ b/libdiskfs/init-startup.c
@@ -92,7 +92,7 @@ diskfs_startup_diskfs (mach_port_t bootstrap, int flags)
right = ports_get_send_right (newpi);
errno = fsys_startup (bootstrap, flags, right,
MACH_MSG_TYPE_COPY_SEND, &realnode);
- mach_port_deallocate (mach_task_self (), newpi);
+ mach_port_deallocate (mach_task_self (), right);
ports_port_deref (newpi);
}
if (errno)