mapi32: Don't leak memory on an error path (Smatch).
This commit is contained in:
parent
f4fb963e2c
commit
eb2c74d5ff
|
@ -1025,7 +1025,7 @@ void load_mapi_providers(void)
|
||||||
|
|
||||||
/* Open the app's key */
|
/* Open the app's key */
|
||||||
if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, appKey, 0, KEY_READ, &hkeyMail) != ERROR_SUCCESS)
|
if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, appKey, 0, KEY_READ, &hkeyMail) != ERROR_SUCCESS)
|
||||||
return;
|
goto cleanUp;
|
||||||
|
|
||||||
/* Try to load the providers */
|
/* Try to load the providers */
|
||||||
load_mapi_provider(hkeyMail, regkey_dllpath, &mapi_provider);
|
load_mapi_provider(hkeyMail, regkey_dllpath, &mapi_provider);
|
||||||
|
|
Loading…
Reference in New Issue