From af16d018ec9ae9f1719836e5a8e985e232186a47 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 7 Oct 2005 17:19:23 +0000 Subject: [PATCH] plug leak if there happens to be an error reading an arg --- src/os/solaris/solaris_sigar.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index dacf702c..4f2ed810 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -751,6 +751,7 @@ int sigar_proc_args_get(sigar_t *sigar, sigar_pid_t pid, if (argvp != argvb) { free(argvp); } + sigar_proc_args_destroy(sigar, procargs); return errno; }