Skip to content

Commit

Permalink
fix build on non-windows
Browse files Browse the repository at this point in the history
broken by previous commit
  • Loading branch information
andrewrk committed Oct 9, 2017
1 parent c4262da commit 055b856
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions std/os/child_process.zig
Expand Up @@ -178,9 +178,9 @@ pub const ChildProcess = struct {
}

fn cleanupStreams(self: &ChildProcess) {
if (self.stdin) |stdin| { stdin.close(); self.allocator.free(stdin); self.stdin = null; }
if (self.stdout) |stdout| { stdout.close(); self.allocator.free(stdout); self.stdout = null; }
if (self.stderr) |stderr| { stderr.close(); self.allocator.free(stderr); self.stderr = null; }
if (self.stdin) |stdin| { stdin.close(); self.allocator.destroy(stdin); self.stdin = null; }
if (self.stdout) |stdout| { stdout.close(); self.allocator.destroy(stdout); self.stdout = null; }
if (self.stderr) |stderr| { stderr.close(); self.allocator.destroy(stderr); self.stderr = null; }
}

fn cleanupAfterWait(self: &ChildProcess, status: i32) -> %Term {
Expand Down

0 comments on commit 055b856

Please sign in to comment.