authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-10-09 14:26:51-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2017-10-09 14:27:14-04:00
log055b856f13ce527a92b2b28760daabce41edd440
tree42153df5a9704ab476ec2b84f082379853e3e733
parentc4262da8de025ca0236df9ebb823b727ca3d43fd

fix build on non-windows

broken by previous commit

1 files changed, 3 insertions(+), 3 deletions(-)

std/os/child_process.zig+3-3
...@@ -178,9 +178,9 @@ pub const ChildProcess = struct {...@@ -178,9 +178,9 @@ pub const ChildProcess = struct {
178 }178 }
179179
180 fn cleanupStreams(self: &ChildProcess) {180 fn cleanupStreams(self: &ChildProcess) {
181 if (self.stdin) |stdin| { stdin.close(); self.allocator.free(stdin); self.stdin = null; }181 if (self.stdin) |stdin| { stdin.close(); self.allocator.destroy(stdin); self.stdin = null; }
182 if (self.stdout) |stdout| { stdout.close(); self.allocator.free(stdout); self.stdout = null; }182 if (self.stdout) |stdout| { stdout.close(); self.allocator.destroy(stdout); self.stdout = null; }
183 if (self.stderr) |stderr| { stderr.close(); self.allocator.free(stderr); self.stderr = null; }183 if (self.stderr) |stderr| { stderr.close(); self.allocator.destroy(stderr); self.stderr = null; }
184 }184 }
185185
186 fn cleanupAfterWait(self: &ChildProcess, status: i32) -> %Term {186 fn cleanupAfterWait(self: &ChildProcess, status: i32) -> %Term {