Mark Jansen : msi: Do not leak rootkey.

Alexandre Julliard julliard at winehq.org
Mon Feb 18 15:43:30 CST 2019


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

Author: Mark Jansen <mark.jansen at reactos.org>
Date:   Sun Feb 17 16:52:46 2019 +0100

msi: Do not leak rootkey.

Signed-off-by: Mark Jansen <mark.jansen at reactos.org>
Signed-off-by: Hans Leidekker <hans at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msi/source.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/msi/source.c b/dlls/msi/source.c
index 904589e..e2cf7fc 100644
--- a/dlls/msi/source.c
+++ b/dlls/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;
 }




More information about the wine-cvs mailing list