summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libdiskfs/io-reauthenticate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdiskfs/io-reauthenticate.c b/libdiskfs/io-reauthenticate.c
index 8a6cb1ac..b4a0b0a3 100644
--- a/libdiskfs/io-reauthenticate.c
+++ b/libdiskfs/io-reauthenticate.c
@@ -56,6 +56,8 @@ diskfs_S_io_reauthenticate (struct protid *cred,
diskfs_finish_protid (newcred, gen_uids, genuidlen, gen_gids, gengidlen);
mutex_unlock (&cred->po->np->lock);
+ ports_port_deref (newcred);
+
if (gubuf != gen_uids)
vm_deallocate (mach_task_self (), (u_int) gen_uids,
genuidlen * sizeof (uid_t));