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 | |
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')
-rw-r--r-- | libports/ChangeLog | 5 | ||||
-rw-r--r-- | libports/dead-name.c | 2 | ||||
-rw-r--r-- | libports/notify-dead-name.c | 6 |
3 files changed, 11 insertions, 2 deletions
diff --git a/libports/ChangeLog b/libports/ChangeLog index 1f60ec4e..1d2c0061 100644 --- a/libports/ChangeLog +++ b/libports/ChangeLog @@ -1,3 +1,8 @@ +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. + 1999-02-28 Roland McGrath <roland@baalperazim.frob.com> * destroy-right.c (ports_destroy_right): Return error_t (always 0). diff --git a/libports/dead-name.c b/libports/dead-name.c index 07705563..de89ba6b 100644 --- a/libports/dead-name.c +++ b/libports/dead-name.c @@ -1,6 +1,6 @@ /* Handle various ports internal uses of 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> 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; } |