projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5072ab7
)
Fix process plugin memory leak [solaris]
author
Jim Quinn
<jquinn47@bloomberg.net>
Mon, 21 Mar 2016 16:40:24 +0000
(12:40 -0400)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Fri, 15 Apr 2016 09:31:05 +0000
(11:31 +0200)
src/processes.c
patch
|
blob
|
history
diff --git
a/src/processes.c
b/src/processes.c
index
89e663a
..
164d33c
100644
(file)
--- 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;