projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
amqp: plug leak on realloc failure
[collectd.git]
/
src
/
processes.c
diff --git
a/src/processes.c
b/src/processes.c
index
d759cb7
..
efc64d0
100644
(file)
--- a/
src/processes.c
+++ b/
src/processes.c
@@
-1364,6
+1364,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;