[PATCH] advapi32: close scm_handle on error exit (Coverity)
Marcus Meissner
meissner at suse.de
Mon Jan 7 15:17:33 CST 2013
CID 713337
Ciao, Marcus
---
dlls/advapi32/tests/service.c | 5 ++++-
1 Datei geändert, 4 Zeilen hinzugefügt(+), 1 Zeile entfernt(-)
diff --git a/dlls/advapi32/tests/service.c b/dlls/advapi32/tests/service.c
index 2eeb40a..035f0cd 100644
--- a/dlls/advapi32/tests/service.c
+++ b/dlls/advapi32/tests/service.c
@@ -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
--
1.7.10.4
More information about the wine-patches
mailing list