From 50d29b8c6df6ab62be6a029175b6fa0f251ed305 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Wed, 28 Mar 2001 18:06:38 +0000 Subject: 2001-03-28 Marcus Brinkmann * dir-lookup.c (diskfs_S_dir_lookup): New variable USER. Store new iouser in that variable and free it after creating the protid for DIRPORT. * trans-callback.c (_diskfs_translator_callback2_fn): Likewise. * io-restrict-auth.c (diskfs_S_io_restrict_auth): Likewise. * io-reauthenticate.c (diskfs_S_io_reauthenticate): Likewise. --- libdiskfs/io-reauthenticate.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libdiskfs/io-reauthenticate.c') diff --git a/libdiskfs/io-reauthenticate.c b/libdiskfs/io-reauthenticate.c index e2c0e68b..eb564a26 100644 --- a/libdiskfs/io-reauthenticate.c +++ b/libdiskfs/io-reauthenticate.c @@ -26,6 +26,7 @@ diskfs_S_io_reauthenticate (struct protid *cred, struct protid *newcred; error_t err; mach_port_t newright; + struct iouser *user; if (cred == 0) return EOPNOTSUPP; @@ -46,8 +47,10 @@ diskfs_S_io_reauthenticate (struct protid *cred, newright = ports_get_send_right (newcred); assert (newright != MACH_PORT_NULL); - diskfs_finish_protid (newcred, iohelp_reauth (diskfs_auth_server_port, - rend_port, newright, 1)); + user = iohelp_reauth (diskfs_auth_server_port, rend_port, newright, 1); + diskfs_finish_protid (newcred, user); + + iohelp_free_iouser (user); mach_port_deallocate (mach_task_self (), rend_port); mach_port_deallocate (mach_task_self (), newright); -- cgit v1.2.3