From 4fe3373aa788e0c8756ff911806b84cdbab1f3b3 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 3 Oct 2005 21:01:51 +0000 Subject: [PATCH] FreeLibrary for advapi32.dll --- src/os/win32/win32_sigar.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/os/win32/win32_sigar.c b/src/os/win32/win32_sigar.c index 800e9938..1200ad6f 100644 --- a/src/os/win32/win32_sigar.c +++ b/src/os/win32/win32_sigar.c @@ -327,6 +327,10 @@ int sigar_os_close(sigar_t *sigar) retval = RegCloseKey(sigar->handle); + if (sigar->adv_handle) { + FreeLibrary(sigar->adv_handle); + } + if (sigar->ip_handle) { FreeLibrary(sigar->ip_handle); }