aboutsummaryrefslogtreecommitdiff
path: root/daemons/console-run.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemons/console-run.c')
-rw-r--r--daemons/console-run.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemons/console-run.c b/daemons/console-run.c
index eab1f51d..87fd8e9f 100644
--- a/daemons/console-run.c
+++ b/daemons/console-run.c
@@ -37,6 +37,7 @@ get_console (void)
return MACH_PORT_NULL;
err = device_open (device_master, D_WRITE | D_READ, "console", &console);
+ mach_port_deallocate (mach_task_self (), device_master);
if (err)
return MACH_PORT_NULL;