[MSI] Do not leak rootkey
authorMark Jansen <mark.jansen@reactos.org>
Sun, 17 Feb 2019 19:46:24 +0000 (20:46 +0100)
committerMark Jansen <mark.jansen@reactos.org>
Mon, 18 Feb 2019 22:00:54 +0000 (23:00 +0100)
dll/win32/msi/source.c

index 68bf9d0..7f55775 100644 (file)
@@ -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;
 }