[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] console-client: deallocate the port once finished with it
From: |
Etienne Brateau |
Subject: |
[PATCH] console-client: deallocate the port once finished with it |
Date: |
Wed, 13 Mar 2024 11:54:55 +0100 |
---
console-client/trans.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/console-client/trans.c b/console-client/trans.c
index b7d56cb0..a3d6dd3c 100644
--- a/console-client/trans.c
+++ b/console-client/trans.c
@@ -898,6 +898,7 @@ console_setup_node (char *path)
err = file_set_translator (node, 0, FS_TRANS_EXCL | FS_TRANS_SET, 0, 0, 0,
right, MACH_MSG_TYPE_COPY_SEND);
mach_port_deallocate (mach_task_self (), right);
+ ports_port_deref (newpi);
if (err)
error (1, err, "Cannot set translator on underlying node");
--
2.44.0
- [PATCH] console-client: deallocate the port once finished with it,
Etienne Brateau <=