summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-01-18 19:11:52 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-01-18 19:11:52 +0000
commit67a07fc35eba65dff96b48e123d27870788b943e (patch)
treeee33306b7c4e1b707422e16274c324f49a91762c /libdiskfs
parent00f56a7cbe75581291f1758f96c25e47879c7c47 (diff)
(diskfs_S_fsys_getroot): Deallocate ref to dotdot after
diskfs_make_peropen, because the latter does not eat a reference.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/fsys-getroot.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libdiskfs/fsys-getroot.c b/libdiskfs/fsys-getroot.c
index d4dff702..edc386ed 100644
--- a/libdiskfs/fsys-getroot.c
+++ b/libdiskfs/fsys-getroot.c
@@ -165,6 +165,7 @@ diskfs_S_fsys_getroot (fsys_t controlport,
newpi = diskfs_make_protid (diskfs_make_peropen (diskfs_root_node,
flags, dotdot),
uids, nuids, gids, ngids);
+ mach_port_deallocate (mach_task_self (), dotdot);
*retry = FS_RETRY_NORMAL;
*retryname = '\0';
*returned_port = ports_get_right (newpi);