[SERVICES]

Fix handles leaks

svn path=/trunk/; revision=56168
This commit is contained in:
Pierre Schweitzer 2012-03-16 10:27:50 +00:00
parent 97400232da
commit 0316c016e3

View file

@ -260,6 +260,8 @@ ScmCreateNamedPipe(VOID)
DPRINT("CreateNamedPipe() - returning FALSE\n"); DPRINT("CreateNamedPipe() - returning FALSE\n");
return FALSE; return FALSE;
} }
CloseHandle(hThread);
} }
else else
{ {
@ -316,6 +318,8 @@ StartScmNamedPipeThreadListener(VOID)
return FALSE; return FALSE;
} }
CloseHandle(hThread);
return TRUE; return TRUE;
} }