From 2333126e63f3b2744b108ffe607b6da85eac4ddd Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 15 Jun 1994 21:55:36 +0000 Subject: entered into RCS --- libtrivfs/protid-clean.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libtrivfs/protid-clean.c') diff --git a/libtrivfs/protid-clean.c b/libtrivfs/protid-clean.c index cc0a12d9..192aa930 100644 --- a/libtrivfs/protid-clean.c +++ b/libtrivfs/protid-clean.c @@ -24,6 +24,17 @@ trivfs_clean_protid (void *arg) { struct trivfs_protid *cred = arg; + if (trivfs_protid_destroy_hook) + (*trivfs_protid_destroy_hook) (cred); + if (!cred->po->refcnt--) + { + if (trivfs_peropen_destroy_hook) + (*trivfs_peropen_destroy_hook) (cred->po); + ports_done_with_port (cred->po->cntl); + free (cred->po); + } + free (cred->uids); + free (cred->gids); mach_port_deallocate (mach_task_self (), cred->realnode); } -- cgit v1.2.3