summaryrefslogtreecommitdiff
path: root/libdiskfs/node-drop.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-10 21:23:02 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-10 21:23:02 +0000
commit58381ca3fa40bc6ad953075b1ae37696c4a01a41 (patch)
treeacb315b4348423579aa8e2750cf0139319ee5030 /libdiskfs/node-drop.c
parente15107cc7a5dd8acf241aa4822a582efbd599881 (diff)
(diskfs_drop_node): Free NP->identity if it's been allocated.
Diffstat (limited to 'libdiskfs/node-drop.c')
-rw-r--r--libdiskfs/node-drop.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libdiskfs/node-drop.c b/libdiskfs/node-drop.c
index 1e0c1236..d2a89090 100644
--- a/libdiskfs/node-drop.c
+++ b/libdiskfs/node-drop.c
@@ -78,6 +78,10 @@ diskfs_drop_node (struct node *np)
free (dm);
}
}
+
+ if (np->identity != MACH_PORT_NULL)
+ mach_port_destroy (mach_task_self (), np->identity;
+
assert (!np->sockaddr);
diskfs_node_norefs (np);