close_mib2 during sigar_close

This commit is contained in:
Doug MacEachern 2005-03-12 18:12:00 +00:00
parent 68fcd5c586
commit da4605cc9f
1 changed files with 3 additions and 0 deletions

View File

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