mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
fix handle leaks
svn path=/trunk/; revision=38927
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user