summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libfshelp/fetch-root.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libfshelp/fetch-root.c b/libfshelp/fetch-root.c
index d7761e58..cc9fa502 100644
--- a/libfshelp/fetch-root.c
+++ b/libfshelp/fetch-root.c
@@ -189,7 +189,8 @@ fshelp_fetch_root (struct transbox *box, void *cookie,
if ((err == MACH_SEND_INVALID_DEST || err == MIG_SERVER_DIED)
&& control == box->active)
fshelp_set_active (box, MACH_PORT_NULL, 0);
- mach_port_deallocate (mach_task_self (), control);
+ else
+ mach_port_deallocate (mach_task_self (), control);
if (err == MACH_SEND_INVALID_DEST || err == MIG_SERVER_DIED)
goto start_over;