fix possible handle leak in sigar_get_cpu_mhz_perfstat
This commit is contained in:
parent
c1df8325d5
commit
6b692615ef
|
@ -1168,6 +1168,7 @@ static int sigar_get_cpu_mhz_perfstat(sigar_t *sigar)
|
||||||
sigar->cpu_mhz = data.processorHZ / 1000000;
|
sigar->cpu_mhz = data.processorHZ / 1000000;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
dlclose(handle);
|
||||||
return errno;
|
return errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue