X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fexec.c;h=973cd52b713c21277a7d27233fa000effccc79c0;hb=ba6497bdffb6a225eb6c86c8b8fa57a2520f0c5f;hp=a78f902fdef5634b11baaae07045a8ea85578ee5;hpb=7c8fb05fcb919fb2d9fc68757c198916396600ce;p=collectd.git diff --git a/src/exec.c b/src/exec.c index a78f902f..973cd52b 100644 --- a/src/exec.c +++ b/src/exec.c @@ -78,7 +78,7 @@ static pthread_mutex_t pl_lock = PTHREAD_MUTEX_INITIALIZER; /* * Functions */ -static void sigchld_handler (int signal) /* {{{ */ +static void sigchld_handler (int __attribute__((unused)) signal) /* {{{ */ { pid_t pid; int status; @@ -712,7 +712,8 @@ static void *exec_notification_one (void *arg) /* {{{ */ DEBUG ("exec plugin: Child %i exited with status %i.", pid, status); - plugin_notification_meta_free (n); + plugin_notification_meta_free (n->meta); + n->meta = NULL; sfree (arg); pthread_exit ((void *) 0); return (NULL);