From da4605cc9fe8ee28ee3415741e99548b5390b91d Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 12 Mar 2005 18:12:00 +0000 Subject: [PATCH] close_mib2 during sigar_close --- src/os/solaris/solaris_sigar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index 18dc5e72..d5ceee91 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -139,6 +139,9 @@ int sigar_os_close(sigar_t *sigar) if (sigar->fsdev) { sigar_cache_destroy(sigar->fsdev); } + if (sigar->mib2.sd != -1) { + close_mib2(&sigar->mib2); + } free(sigar); return SIGAR_OK; }