From 58381ca3fa40bc6ad953075b1ae37696c4a01a41 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 10 May 1996 21:23:02 +0000 Subject: (diskfs_drop_node): Free NP->identity if it's been allocated. --- libdiskfs/node-drop.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libdiskfs') 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); -- cgit v1.2.3