fix handle leaks

svn path=/trunk/; revision=38927
This commit is contained in:
Christoph von Wittich
2009-01-19 05:08:11 +00:00
parent e67174808a
commit 2fef907b66
+8
View File
@@ -117,6 +117,10 @@ IntRunTest(PWSTR CommandLine, HANDLE hReadPipe, LPSTARTUPINFOW StartupInfo, PWIN
}
while(!BreakLoop);
/* Close the process handles */
CloseHandle(ProcessInfo.hProcess);
CloseHandle(ProcessInfo.hThread);
if(AppOptions.Submit)
{
SubmitData->Log[LogLength - LogAvailable] = 0;
@@ -217,6 +221,10 @@ IntRunModuleTests(PWSTR File, PWSTR FilePath, HANDLE hReadPipe, LPSTARTUPINFOW S
return FALSE;
}
/* Close the process handles */
CloseHandle(ProcessInfo.hProcess);
CloseHandle(ProcessInfo.hThread);
/* Read the output data into a buffer */
if(!PeekNamedPipe(hReadPipe, NULL, 0, NULL, &BytesAvailable, NULL))
{