Skip to content

Commit 33eb98d

Browse files
authored
Merge pull request #172 from gHashTag/feat/issue-166
fix(mcp-client): add child.deinit() in spawn error path
2 parents e494987 + 8fbcc28 commit 33eb98d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/tri-api/mcp_client.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ pub const McpManager = struct {
5757

5858
child.spawn() catch |err| {
5959
std.debug.print("[mcp] Failed to spawn {s}: {s}\n", .{ name, @errorName(err) });
60+
child.deinit();
6061
return 0;
6162
};
6263

0 commit comments

Comments
 (0)