From dbfa8a31e5e954d8309068e1bcc815a608e4b618 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 3 Mar 2011 23:44:37 +0100 Subject: 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. --- libdiskfs/io-reauthenticate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdiskfs/io-reauthenticate.c') 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); -- cgit v1.2.3