advapi32: Close scm_handle on error exit (Coverity).
This commit is contained in:
parent
4d5dcdca48
commit
a422d6b382
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue