services: Fix handle leak for service handles (Coverity).

This commit is contained in:
Marcus Meissner 2013-05-26 15:31:51 +02:00 committed by Alexandre Julliard
parent 4c20fec045
commit d82de9b9a7
1 changed files with 2 additions and 0 deletions

View File

@ -328,6 +328,7 @@ static void test_service(void)
ok(res, "StartService failed: %u\n", GetLastError());
if(!res) {
DeleteService(service_handle);
CloseServiceHandle(service_handle);
return;
}
expect_event("RUNNING");
@ -368,6 +369,7 @@ static inline void test_no_stop(void)
ok(res, "StartService failed: %u\n", GetLastError());
if(!res) {
DeleteService(service_handle);
CloseServiceHandle(service_handle);
return;
}
expect_event("RUNNING");