summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-06-20 20:40:35 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-06-20 20:40:35 +0000
commita9814c69accd6b0ce19100a4b219890408d2c7e1 (patch)
treeb5118efd88c2272b9757b59938d26d6eb332b7eb /libdiskfs
parent323bbb2208d9eb3909c84e0cbd324d835349119d (diff)
Formerly node-drop.c.~7~
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/node-drop.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/libdiskfs/node-drop.c b/libdiskfs/node-drop.c
index aafbc730..763d2b61 100644
--- a/libdiskfs/node-drop.c
+++ b/libdiskfs/node-drop.c
@@ -56,6 +56,17 @@ diskfs_drop_node (struct node *np)
else
diskfs_node_update (np, 0);
+ if (np->dirmod_reqs)
+ {
+ struct dirmod *dm, *tmp;
+ for (dm = np->dirmod_reqs; dm; dm = tmp)
+ {
+ mach_port_deallocate (mach_task_self (), dm->port);
+ tmp = dm->next;
+ free (dm);
+ }
+ }
+
diskfs_node_norefs (np);
spin_unlock (&diskfs_node_refcnt_lock);
}