summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-07-21 21:01:32 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-07-21 21:01:32 +0000
commit5d1a0ef13053a7d8088cd5eaf02b8776ff87a83c (patch)
treea109316624b9fd590a5eb3b6757047804e8bea97
parent450f77bc32aa6f0352691896ff9e41cd5d9d253d (diff)
(trivfs_S_fsys_getroot): Free initial reference created by
ports_allocate_port.
-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;
}