From 48686b08870b88e9e80ba52dd17e26e9b47d7d86 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 21 Jul 1995 21:03:31 +0000 Subject: (trivfs_S_io_duplicate): Free initial reference created by ports_allocate_port. --- libtrivfs/io-duplicate.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libtrivfs') diff --git a/libtrivfs/io-duplicate.c b/libtrivfs/io-duplicate.c index 787fbc08..74525447 100644 --- a/libtrivfs/io-duplicate.c +++ b/libtrivfs/io-duplicate.c @@ -60,6 +60,7 @@ trivfs_S_io_duplicate (struct trivfs_protid *cred, *newport = ports_get_right (newcred); *newporttype = MACH_MSG_TYPE_MAKE_SEND; + ports_port_deref (newcred); return 0; } -- cgit v1.2.3