diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-03-06 22:18:17 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-03-06 22:18:17 +0000 |
commit | 67ce225317bb58b710659999ffe84977cf6dffc4 (patch) | |
tree | d2dbef68dc764a5dcfc8fc64f4f3018aafc64f41 /libports/notify-dead-name.c | |
parent | 0bc92b96df2bb2bd35fc23b32453044f0ffacc94 (diff) |
Sat Mar 6 17:05:45 1999 Thomas Bushnell, BSG <tb@mit.edu>
* notify-dead-name.c (ports_do_mach_notify_dead_name): Deallocate
newly created reference to DEAD_NAME.
Diffstat (limited to 'libports/notify-dead-name.c')
-rw-r--r-- | libports/notify-dead-name.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libports/notify-dead-name.c b/libports/notify-dead-name.c index 24e34674..c67145d1 100644 --- a/libports/notify-dead-name.c +++ b/libports/notify-dead-name.c @@ -1,6 +1,6 @@ /* Dead name notification - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1999 Free Software Foundation, Inc. Written by Miles Bader <miles@gnu.ai.mit.edu> @@ -29,5 +29,9 @@ ports_do_mach_notify_dead_name (mach_port_t notify, mach_port_t dead_name) return EOPNOTSUPP; ports_dead_name (pi, dead_name); ports_port_deref (pi); + + /* Drop gratuitous extra reference that the notification creates. */ + mach_port_deallocate (mach_task_self (), dead_name); + return 0; } |