summaryrefslogtreecommitdiff
path: root/libfshelp
diff options
context:
space:
mode:
Diffstat (limited to 'libfshelp')
-rw-r--r--libfshelp/fetch-root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfshelp/fetch-root.c b/libfshelp/fetch-root.c
index 54d3c0ca..eb569896 100644
--- a/libfshelp/fetch-root.c
+++ b/libfshelp/fetch-root.c
@@ -79,7 +79,7 @@ fshelp_fetch_root (struct transbox *box, void *cookie,
if (err)
ret = MACH_PORT_NULL;
- mach_port_destroy (mach_task_self (), rend);
+ mach_port_mod_refs (mach_task_self (), rend, MACH_PORT_RIGHT_RECEIVE, -1);
return ret;
}