From: Jim Quinn Date: Mon, 21 Mar 2016 16:40:24 +0000 (-0400) Subject: Fix process plugin memory leak [solaris] X-Git-Tag: collectd-5.5.2~6^2~12 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=f86731f4fca466e89453b02bf185730e7d547898;p=collectd.git Fix process plugin memory leak [solaris] --- 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;