X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fexec.c;h=f8707d4181269d82d4a87d1afb9b496ef0914a8f;hp=499d675898b4f4813cc85e8096ed779a68627edd;hb=48efd3deb4c9139fd060ff3d289896e9031bcc7c;hpb=b5b5d43f302e0b9290d3e247ea29699814d46abb 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);