From 6b692615ef834e2166433f0e8dae168e75658f7a Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Tue, 13 Jul 2004 02:25:41 +0000 Subject: [PATCH] fix possible handle leak in sigar_get_cpu_mhz_perfstat --- src/os/aix/aix_sigar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/os/aix/aix_sigar.c b/src/os/aix/aix_sigar.c index e7689054..c0228947 100644 --- a/src/os/aix/aix_sigar.c +++ b/src/os/aix/aix_sigar.c @@ -1168,6 +1168,7 @@ static int sigar_get_cpu_mhz_perfstat(sigar_t *sigar) sigar->cpu_mhz = data.processorHZ / 1000000; } else { + dlclose(handle); return errno; }