mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-11 16:50:50 -05:00
BUG: Removed CloseHandle in case of error in DuplicateHandle. According to documentation, DuplicateHandle will close the source handle regardless of error condition.
This commit is contained in:
@@ -757,7 +757,6 @@ void kwsysProcess_Execute(kwsysProcess* cp)
|
||||
DUPLICATE_SAME_ACCESS)))
|
||||
{
|
||||
kwsysProcessCleanup(cp, 1);
|
||||
CloseHandle(writeEnd);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user