summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2011-03-03 23:44:37 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-03-03 23:44:37 +0100
commitdbfa8a31e5e954d8309068e1bcc815a608e4b618 (patch)
tree8aee1bf53c5fdb44a7263304302426cbe555a5ea /libdiskfs
parent97ad0be8db34e507beb7330a6e412715bfd5d54d (diff)
Drop duplicate port deallocation
* libdiskfs/io-reauthenticate.c (diskfs_S_io_reauthenticate): Do not deallocate parameter port `rend_port' whan an error will be returned.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/io-reauthenticate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/io-reauthenticate.c b/libdiskfs/io-reauthenticate.c
index fd427e20..3c5da52d 100644
--- a/libdiskfs/io-reauthenticate.c
+++ b/libdiskfs/io-reauthenticate.c
@@ -53,9 +53,9 @@ diskfs_S_io_reauthenticate (struct protid *cred,
{
diskfs_finish_protid (newcred, user);
iohelp_free_iouser (user);
+ mach_port_deallocate (mach_task_self (), rend_port);
}
- mach_port_deallocate (mach_task_self (), rend_port);
mach_port_deallocate (mach_task_self (), newright);
mutex_unlock (&cred->po->np->lock);