Skip to content

Commit e494987

Browse files
authored
Merge pull request #171 from gHashTag/feat/issue-165
fix(state): add missing child.deinit() in runProcessInherit
2 parents aa5cfad + c7762f8 commit e494987

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/tri/tri_state.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ pub fn runProcessAndCapture(allocator: std.mem.Allocator, argv: []const []const
3333
/// Run a subprocess, inherit stdio, return exit code
3434
pub fn runProcessInherit(allocator: std.mem.Allocator, argv: []const []const u8) !u8 {
3535
var child = std.process.Child.init(argv, allocator);
36+
defer child.deinit();
3637
child.stdout_behavior = .Inherit;
3738
child.stderr_behavior = .Inherit;
3839
_ = try child.spawn();

0 commit comments

Comments
 (0)