From eea5a135ff7f9a6f61b2282196117712930871c7 Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Fri, 17 Apr 2015 11:09:18 +0000 Subject: [PATCH] Eliminate superfluous CloseHandle(PI.ProcessHandle). This handle will always be closed few lines later, resulting in an error for the second CloseHandle. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235177 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Windows/Program.inc | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Support/Windows/Program.inc b/lib/Support/Windows/Program.inc index c3700774514..32602345f65 100644 --- a/lib/Support/Windows/Program.inc +++ b/lib/Support/Windows/Program.inc @@ -423,7 +423,6 @@ ProcessInfo sys::Wait(const ProcessInfo &PI, unsigned SecondsToWait, return WaitResult; } WaitForSingleObject(PI.ProcessHandle, INFINITE); - CloseHandle(PI.ProcessHandle); } else { // Non-blocking wait. return ProcessInfo(); -- 2.34.1