From f86731f4fca466e89453b02bf185730e7d547898 Mon Sep 17 00:00:00 2001 From: Jim Quinn Date: Mon, 21 Mar 2016 12:40:24 -0400 Subject: [PATCH] Fix process plugin memory leak [solaris] --- src/processes.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/processes.c b/src/processes.c index 89e663a5..164d33cb 100644 --- a/src/processes.c +++ b/src/processes.c @@ -1279,6 +1279,10 @@ static int ps_read_process(long pid, procstat_t *ps, char *state) ps->num_proc = 0; ps->num_lwp = 0; *state = (char) 'Z'; + + sfree(myStatus); + sfree(myInfo); + sfree(myUsage); return (0); } else { ps->num_proc = 1; -- 2.30.2