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