advapi32: Close scm_handle on error exit (Coverity).

This commit is contained in:
Marcus Meissner 2013-01-07 22:17:33 +01:00 committed by Alexandre Julliard
parent 4d5dcdca48
commit a422d6b382
1 changed files with 4 additions and 1 deletions

View File

@ -1866,7 +1866,10 @@ static void test_sequence(void)
}
}
if (!svc_handle) return;
if (!svc_handle) {
CloseServiceHandle(scm_handle);
return;
}
/* TODO:
* Before we do a QueryServiceConfig we should check the registry. This will make sure