projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #3339 from jkohen/patch-1
[collectd.git]
/
src
/
exec.c
diff --git
a/src/exec.c
b/src/exec.c
index
499d675
..
f8707d4
100644
(file)
--- a/
src/exec.c
+++ b/
src/exec.c
@@
-910,6
+910,11
@@
static int exec_shutdown(void) /* {{{ */
INFO("exec plugin: Sent SIGTERM to %hu", (unsigned short int)pl->pid);
}
INFO("exec plugin: Sent SIGTERM to %hu", (unsigned short int)pl->pid);
}
+ for (int i = 0; pl->argv[i] != NULL; i++) {
+ sfree(pl->argv[i]);
+ }
+ sfree(pl->argv);
+ sfree(pl->exec);
sfree(pl->user);
sfree(pl);
sfree(pl->user);
sfree(pl);