summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libtrivfs/cntl-clean.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libtrivfs/cntl-clean.c b/libtrivfs/cntl-clean.c
index 4b7a29cd..a010828f 100644
--- a/libtrivfs/cntl-clean.c
+++ b/libtrivfs/cntl-clean.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1994, 1996 Free Software Foundation
+ Copyright (C) 1994, 1996, 1997 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -27,4 +27,9 @@ trivfs_clean_cntl (void *arg)
mach_port_destroy (mach_task_self (), cntl->filesys_id);
mach_port_destroy (mach_task_self (), cntl->file_id);
mach_port_deallocate (mach_task_self (), cntl->underlying);
+
+ trivfs_remove_control_port_class (cntl->pi.class);
+ trivfs_remove_port_bucket (cntl->pi.bucket);
+ trivfs_remove_protid_port_class (cntl->protid_class);
+ trivfs_remove_port_bucket (cntl->protid_bucket);
}