From: Mark Jansen Date: Sun, 17 Feb 2019 19:46:24 +0000 (+0100) Subject: [MSI] Do not leak rootkey X-Git-Tag: 0.4.13-dev~371 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=2fade6ede43f36eab7510ed9089d3da951b1d74c [MSI] Do not leak rootkey --- diff --git a/dll/win32/msi/source.c b/dll/win32/msi/source.c index 68bf9d0a226..7f55775b05d 100644 --- a/dll/win32/msi/source.c +++ b/dll/win32/msi/source.c @@ -98,6 +98,7 @@ static UINT OpenSourceKey(LPCWSTR szProduct, HKEY* key, DWORD dwOptions, if (rc != ERROR_SUCCESS) rc = ERROR_BAD_CONFIGURATION; } + RegCloseKey(rootkey); return rc; }