Author: cwittich
Date: Sun Jan 18 23:08:11 2009
New Revision: 38927
URL:
http://svn.reactos.org/svn/reactos?rev=38927&view=rev
Log:
fix handle leaks
Modified:
trunk/rostests/rosautotest/winetests.c
Modified: trunk/rostests/rosautotest/winetests.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/rosautotest/winetests.c?r…
==============================================================================
--- trunk/rostests/rosautotest/winetests.c [iso-8859-1] (original)
+++ trunk/rostests/rosautotest/winetests.c [iso-8859-1] Sun Jan 18 23:08:11 2009
@@ -116,6 +116,10 @@
}
}
while(!BreakLoop);
+
+ /* Close the process handles */
+ CloseHandle(ProcessInfo.hProcess);
+ CloseHandle(ProcessInfo.hThread);
if(AppOptions.Submit)
{
@@ -216,6 +220,10 @@
StringOut("WaitForSingleObject failed for the test list\n");
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))