summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-07-21 21:15:39 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-07-21 21:15:39 +0000
commit61ece3d54e727302659c82d9432e045eca5035c0 (patch)
tree9b77d5db82480958e324d2142fe7348a1ca2ff25 /libdiskfs
parent77c3a0da29ef7216102163f306e004e7087f0f01 (diff)
(diskfs_S_io_reauthenticate): Free initial reference created by
diskfs_start_protid.
Diffstat (limited to 'libdiskfs')
-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));