| ... | ... | @@ -720,7 +720,7 @@ pub const ChildProcess = struct { |
| 720 | 720 | g_hChildStd_OUT_Wr = null; |
| 721 | 721 | }, |
| 722 | 722 | } |
| 723 | | errdefer if (self.stdin_behavior == StdIo.Pipe) { |
| 723 | errdefer if (self.stdout_behavior == StdIo.Pipe) { |
| 724 | 724 | windowsDestroyPipe(g_hChildStd_OUT_Rd, g_hChildStd_OUT_Wr); |
| 725 | 725 | }; |
| 726 | 726 | |
| ... | ... | @@ -740,7 +740,7 @@ pub const ChildProcess = struct { |
| 740 | 740 | g_hChildStd_ERR_Wr = null; |
| 741 | 741 | }, |
| 742 | 742 | } |
| 743 | | errdefer if (self.stdin_behavior == StdIo.Pipe) { |
| 743 | errdefer if (self.stderr_behavior == StdIo.Pipe) { |
| 744 | 744 | windowsDestroyPipe(g_hChildStd_ERR_Rd, g_hChildStd_ERR_Wr); |
| 745 | 745 | }; |
| 746 | 746 | |