diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/win/util.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/win/util.c b/src/win/util.c index 92378912..a5ec8492 100644 --- a/src/win/util.c +++ b/src/win/util.c @@ -684,12 +684,9 @@ int uv_cpu_info(uv_cpu_info_t** cpu_infos_ptr, int* cpu_count_ptr) { NULL, (BYTE*)&cpu_brand, &cpu_brand_size); - if (err != ERROR_SUCCESS) { - RegCloseKey(processor_key); - goto error; - } - RegCloseKey(processor_key); + if (err != ERROR_SUCCESS) + goto error; cpu_info = &cpu_infos[i]; cpu_info->speed = cpu_speed; |