summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libtrivfs/io-restrict-auth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libtrivfs/io-restrict-auth.c b/libtrivfs/io-restrict-auth.c
index e29aca47..2ecb0808 100644
--- a/libtrivfs/io-restrict-auth.c
+++ b/libtrivfs/io-restrict-auth.c
@@ -90,5 +90,6 @@ trivfs_S_io_restrict_auth (struct trivfs_protid *cred,
*newport = ports_get_right (newcred);
*newporttype = MACH_MSG_TYPE_MAKE_SEND;
+ ports_port_deref (newcred);
return 0;
}