darwin: fix -Wsometimes-uninitialized warning
PR-URL: https://github.com/libuv/libuv/pull/3190 Reviewed-By: Jameson Nash <vtjnash@gmail.com>
This commit is contained in:
parent
385b7960a0
commit
6085bcef8d
@ -302,12 +302,13 @@ static int uv__get_cpu_speed(uint64_t* speed) {
|
|||||||
pIOObjectRelease(it);
|
pIOObjectRelease(it);
|
||||||
|
|
||||||
err = 0;
|
err = 0;
|
||||||
out:
|
|
||||||
if (device_type_str != NULL)
|
if (device_type_str != NULL)
|
||||||
pCFRelease(device_type_str);
|
pCFRelease(device_type_str);
|
||||||
if (clock_frequency_str != NULL)
|
if (clock_frequency_str != NULL)
|
||||||
pCFRelease(clock_frequency_str);
|
pCFRelease(clock_frequency_str);
|
||||||
|
|
||||||
|
out:
|
||||||
if (core_foundation_handle != NULL)
|
if (core_foundation_handle != NULL)
|
||||||
dlclose(core_foundation_handle);
|
dlclose(core_foundation_handle);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user