https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2fade6ede43f36eab7510ed9089d3da951b1d74c

commit 2fade6ede43f36eab7510ed9089d3da951b1d74c
Author:     Mark Jansen <[email protected]>
AuthorDate: Sun Feb 17 20:46:24 2019 +0100
Commit:     Mark Jansen <[email protected]>
CommitDate: Mon Feb 18 23:00:54 2019 +0100

    [MSI] Do not leak rootkey
---
 dll/win32/msi/source.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dll/win32/msi/source.c b/dll/win32/msi/source.c
index 68bf9d0a22..7f55775b05 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;
 }

Reply via email to