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

This commit is contained in:
Michael Stefaniuc 2009-09-18 21:42:51 +02:00 committed by Alexandre Julliard
parent f4fb963e2c
commit eb2c74d5ff
1 changed files with 1 additions and 1 deletions

View File

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