From b874989276a33411f188f277e74b612612af6fac Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Mon, 17 Jan 2022 11:20:45 -0800 Subject: Pass mach_task_self when deallocating INIT_PORT_CWDIR Message-Id: --- utils/login.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/login.c') 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; } } -- cgit v1.2.3