summaryrefslogtreecommitdiff
path: root/libfshelp/fetch-control.c
diff options
context:
space:
mode:
Diffstat (limited to 'libfshelp/fetch-control.c')
-rw-r--r--libfshelp/fetch-control.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libfshelp/fetch-control.c b/libfshelp/fetch-control.c
index 0a11197a..3b05e11f 100644
--- a/libfshelp/fetch-control.c
+++ b/libfshelp/fetch-control.c
@@ -32,11 +32,7 @@ fshelp_fetch_control (struct transbox *box,
MACH_PORT_RIGHT_SEND, 1);
if (err == KERN_INVALID_RIGHT)
- {
- err = mach_port_deallocate (mach_task_self (), *control);
- assert_perror_backtrace (err);
- *control = box->active = MACH_PORT_NULL;
- }
+ *control = box->active = MACH_PORT_NULL;
return err;
}