fix(macos): fix memory leak

This commit is contained in:
utox39
2025-04-18 14:26:18 +02:00
parent 931f474b83
commit c86ba3f9dc

View File

@@ -12,6 +12,7 @@ pub fn getShell(allocator: std.mem.Allocator) ![]u8 {
const shell = try std.process.getEnvVarOwned(allocator, "SHELL");
var child = std.process.Child.init(&[_][]const u8{ shell, "--version" }, allocator);
defer allocator.free(shell);
child.stdout_behavior = .Pipe;
child.stderr_behavior = .Pipe;