From 5145e6b8c8e72d971550f87cd2c4c3f96a907d87 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 13 Jul 2009 17:57:28 -0700 Subject: [PATCH] (SIGAR-155) Plug memory leak sigar_proc_exe_get Darwin impl --- src/os/darwin/darwin_sigar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index 5cbf9d61..dd7c64fc 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -1866,6 +1866,8 @@ int sigar_proc_exe_get(sigar_t *sigar, sigar_pid_t pid, } } + sigar_kern_proc_args_destroy(&kargs); + return SIGAR_OK; #else int len;