Michael Stefaniuc : mapi32: Don't leak memory on an error path (Smatch).

Alexandre Julliard julliard at winehq.org
Tue Sep 22 13:54:52 CDT 2009


Module: wine
Branch: master
Commit: eb2c74d5ffecd7b6ee7c8a96fe5d14759bc62264
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=eb2c74d5ffecd7b6ee7c8a96fe5d14759bc62264

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Sep 18 21:42:51 2009 +0200

mapi32: Don't leak memory on an error path (Smatch).

---

 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);




More information about the wine-cvs mailing list