summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libtrivfs/fsys-getroot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libtrivfs/fsys-getroot.c b/libtrivfs/fsys-getroot.c
index d6b4a874..c082b7d4 100644
--- a/libtrivfs/fsys-getroot.c
+++ b/libtrivfs/fsys-getroot.c
@@ -110,6 +110,7 @@ trivfs_S_fsys_getroot (struct trivfs_control *cntl,
*retry_name = '\0';
*newpt = ports_get_right (cred);
*newpttype = MACH_MSG_TYPE_MAKE_SEND;
+ ports_port_deref (cred);
mach_port_deallocate (mach_task_self (), dotdot);
return 0;
}