summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2022-01-17 11:20:45 -0800
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-01-17 22:14:14 +0100
commitb874989276a33411f188f277e74b612612af6fac (patch)
tree6b927135005b65d5e7a302d95b663fdeff0cb541 /utils
parentf5fb7c713ea443469406a691e60a6f4567a4cb75 (diff)
Pass mach_task_self when deallocating INIT_PORT_CWDIR
Message-Id: <YeXBjT8t777b8+AF@viriathus>
Diffstat (limited to 'utils')
-rw-r--r--utils/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/login.c b/utils/login.c
index 553629c6..506fdaf2 100644
--- a/utils/login.c
+++ b/utils/login.c
@@ -788,7 +788,7 @@ main(int argc, char *argv[])
}
else
{
- mach_port_deallocate (ports[INIT_PORT_CWDIR]);
+ mach_port_deallocate (mach_task_self (), ports[INIT_PORT_CWDIR]);
ports[INIT_PORT_CWDIR] = cwd;
}
}