diff --git a/Common/ArmCPUDetect.cpp b/Common/ArmCPUDetect.cpp index 59f5440c1b..da8d45f2f9 100644 --- a/Common/ArmCPUDetect.cpp +++ b/Common/ArmCPUDetect.cpp @@ -47,6 +47,7 @@ std::string GetCPUBrandString() { cpu_string = ConvertWStringToUTF8((wchar_t*)buff); free(buff); } + RegCloseKey(key); } if (cpu_string.empty())