summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--term/users.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/term/users.c b/term/users.c
index 97bc22c2..9bd51d05 100644
--- a/term/users.c
+++ b/term/users.c
@@ -259,9 +259,7 @@ pi_destroy_hook (struct trivfs_protid *cred)
{
assert (((struct protid_hook *)cred->hook)->refcnt > 0);
if (--((struct protid_hook *)cred->hook)->refcnt == 0)
- /* XXX don't free for now, so we can try and catch a multiple-freeing
- bug. */
- /* free (cred->hook) */;
+ free (cred->hook);
}
pthread_mutex_unlock (&global_lock);
}