From 9c0ab357d40a9497a262fd59eafa96aa4a55a1ce Mon Sep 17 00:00:00 2001
From: Brad King <brad.king@kitware.com>
Date: Tue, 4 Nov 2003 08:56:12 -0500
Subject: [PATCH] BUG: Removed CloseHandle in case of error in DuplicateHandle.
  According to documentation, DuplicateHandle will close the source handle
 regardless of error condition.

---
 ProcessWin32.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/ProcessWin32.c b/ProcessWin32.c
index 6cddfe58..172e381f 100644
--- a/ProcessWin32.c
+++ b/ProcessWin32.c
@@ -757,7 +757,6 @@ void kwsysProcess_Execute(kwsysProcess* cp)
                                   DUPLICATE_SAME_ACCESS)))
       {
       kwsysProcessCleanup(cp, 1);
-      CloseHandle(writeEnd);
       return;
       }
     }
-- 
GitLab