Author: pschweitzer
Date: Fri Mar 16 10:27:50 2012
New Revision: 56168
URL:
http://svn.reactos.org/svn/reactos?rev=56168&view=rev
Log:
[SERVICES]
Fix handles leaks
Modified:
trunk/reactos/base/system/services/services.c
Modified: trunk/reactos/base/system/services/services.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/servi…
==============================================================================
--- trunk/reactos/base/system/services/services.c [iso-8859-1] (original)
+++ trunk/reactos/base/system/services/services.c [iso-8859-1] Fri Mar 16 10:27:50 2012
@@ -260,6 +260,8 @@
DPRINT("CreateNamedPipe() - returning FALSE\n");
return FALSE;
}
+
+ CloseHandle(hThread);
}
else
{
@@ -316,6 +318,8 @@
return FALSE;
}
+ CloseHandle(hThread);
+
return TRUE;
}