mapi32: Don't leak memory on an error path (Smatch).
Michael Stefaniuc
mstefani at redhat.de
Fri Sep 18 14:42:51 CDT 2009
---
dlls/mapi32/util.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/mapi32/util.c b/dlls/mapi32/util.c
index 6a6a5cd..4957941 100644
--- a/dlls/mapi32/util.c
+++ b/dlls/mapi32/util.c
@@ -1025,7 +1025,7 @@ void load_mapi_providers(void)
/* Open the app's key */
if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, appKey, 0, KEY_READ, &hkeyMail) != ERROR_SUCCESS)
- return;
+ goto cleanUp;
/* Try to load the providers */
load_mapi_provider(hkeyMail, regkey_dllpath, &mapi_provider);
--
1.6.5.rc1
More information about the wine-patches
mailing list