fix possible handle leak in sigar_get_cpu_mhz_perfstat

This commit is contained in:
Doug MacEachern 2004-07-13 02:25:41 +00:00
parent c1df8325d5
commit 6b692615ef
1 changed files with 1 additions and 0 deletions

View File

@ -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;
} }