diff --git a/dll/cpl/sysdm/general.c b/dll/cpl/sysdm/general.c index 870ec299c1b..85bc450cc2f 100644 --- a/dll/cpl/sysdm/general.c +++ b/dll/cpl/sysdm/general.c @@ -468,6 +468,7 @@ static VOID GetSystemInformation(HWND hwnd) { SetRegTextData(hwnd, hKey, _T("Identifier"), CurMachineLine); CurMachineLine++; + RegCloseKey(hKey); } } /* @@ -489,6 +490,7 @@ static VOID GetSystemInformation(HWND hwnd) SetProcSpeed(hwnd, hKey, _T("~MHz"), CurMachineLine); CurMachineLine++; + RegCloseKey(hKey); } /* Get total physical RAM */