summaryrefslogtreecommitdiff
path: root/libtrivfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-07-21 21:03:31 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-07-21 21:03:31 +0000
commit48686b08870b88e9e80ba52dd17e26e9b47d7d86 (patch)
tree4c454d0a4c64d82b5a6bce2876da02ce544eb844 /libtrivfs
parentd775d7de4b3b8f085d54c7b21595eecfc2fd43df (diff)
(trivfs_S_io_duplicate): Free initial reference created by
ports_allocate_port.
Diffstat (limited to 'libtrivfs')
-rw-r--r--libtrivfs/io-duplicate.c1
1 files changed, 1 insertions, 0 deletions
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;
}