X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fexec.c;h=f8707d4181269d82d4a87d1afb9b496ef0914a8f;hb=de407dd4e036f73e9bd4658af9d71f504fc11109;hp=499d675898b4f4813cc85e8096ed779a68627edd;hpb=b5b5d43f302e0b9290d3e247ea29699814d46abb;p=collectd.git diff --git a/src/exec.c b/src/exec.c index 499d6758..f8707d41 100644 --- 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); } + for (int i = 0; pl->argv[i] != NULL; i++) { + sfree(pl->argv[i]); + } + sfree(pl->argv); + sfree(pl->exec); sfree(pl->user); sfree(pl);