From b22c1ee0f9dfb20fa048aadaa2db5cf81aa331c4 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 12 Mar 1996 19:36:04 +0000 Subject: (diskfs_S_file_set_translator): Deallocate ref on CONTROL when we are done with it. --- libdiskfs/file-set-trans.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libdiskfs') diff --git a/libdiskfs/file-set-trans.c b/libdiskfs/file-set-trans.c index 87118d5d..0972bd40 100644 --- a/libdiskfs/file-set-trans.c +++ b/libdiskfs/file-set-trans.c @@ -73,12 +73,15 @@ diskfs_S_file_set_translator (struct protid *cred, { mutex_unlock (&np->lock); error = fsys_goaway (control, killtrans_flags); + mach_port_deallocate (mach_task_self (), control); if (error && (error != MIG_SERVER_DIED) && (error != MACH_SEND_INVALID_DEST)) return error; error = 0; mutex_lock (&np->lock); } + else if (control != MACH_PORT_NULL) + mach_port_deallocate (mach_task_self (), control); } /* Handle exclusive passive bit *first*. */ -- cgit v1.2.3