diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index 35ddaf64..98c7c3d7 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -197,6 +197,9 @@ int sigar_os_close(sigar_t *sigar) if (sigar->pinfo) { free(sigar->pinfo); } + if (sigar->kmem) { + kvm_close(sigar->kmem); + } free(sigar); return SIGAR_OK; }