From 5d1a0ef13053a7d8088cd5eaf02b8776ff87a83c Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 21 Jul 1995 21:01:32 +0000 Subject: (trivfs_S_fsys_getroot): Free initial reference created by ports_allocate_port. --- libtrivfs/fsys-getroot.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3