Fix process plugin memory leak [solaris]
authorJim Quinn <jquinn47@bloomberg.net>
Mon, 21 Mar 2016 16:40:24 +0000 (12:40 -0400)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 15 Apr 2016 09:31:05 +0000 (11:31 +0200)
src/processes.c

index 89e663a..164d33c 100644 (file)
@@ -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;