diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-05-14 18:08:42 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-05-14 18:08:42 +0000 |
commit | 88ce8bc2cc19c95de471e5c3882d21118bc95be1 (patch) | |
tree | de6e0a5cf5430e03b87214ac1b4b7309ae705dcd /libnetfs | |
parent | 11d4d33ed17ba7e2f99e5eee752eedfe6f61eabd (diff) |
(netfs_drop_node): Destroy NP->identity if it's set.
Diffstat (limited to 'libnetfs')
-rw-r--r-- | libnetfs/drop-node.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libnetfs/drop-node.c b/libnetfs/drop-node.c index 8e2019fd..1b6ddf88 100644 --- a/libnetfs/drop-node.c +++ b/libnetfs/drop-node.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -24,6 +24,8 @@ void netfs_drop_node (struct node *np) { fshelp_drop_transbox (&np->transbox); + if (np->identity != MACH_PORT_NULL) + mach_port_destroy (mach_task_self (), np->identity); netfs_node_norefs (np); spin_unlock (&netfs_node_refcnt_lock); } |