From c33cf580aeac46f8e32831c30e6970f5e4dd8232 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sat, 6 Mar 1999 22:17:41 +0000 Subject: Sat Mar 6 17:13:48 1999 Thomas Bushnell, BSG * init.c (do_mach_notify_dead_name): Deallocate the extra reference to NAME that the notification carries. --- init/init.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'init/init.c') diff --git a/init/init.c b/init/init.c index 133d44f1..7d2c3111 100644 --- a/init/init.c +++ b/init/init.c @@ -1583,6 +1583,9 @@ do_mach_notify_dead_name (mach_port_t notify, struct ntfy_task *nt, *pnt; struct ess_task *et; + /* Deallocate the extra reference the notification carries. */ + mach_port_deallocate (mach_task_self (), name); + for (et = ess_tasks; et != NULL; et = et->next) if (et->task_port == name) /* An essential task has died. */ @@ -1601,8 +1604,10 @@ do_mach_notify_dead_name (mach_port_t notify, else ntfy_tasks = nt->next; free (nt); + return 0; } + return 0; } -- cgit v1.2.3