X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fexec.c;h=1f8a9ac0ebfb4a7ccfb933192368630c63cd3844;hb=7f71f1b7a38d7b50af44f403b79aa034b3882f2a;hp=4405985646fdf24d27e3ea25367e32965cb47ee7;hpb=5a7145dd5626503f411a4aed87f30fc0f9689c90;p=collectd.git diff --git a/src/exec.c b/src/exec.c index 44059856..1f8a9ac0 100644 --- a/src/exec.c +++ b/src/exec.c @@ -730,7 +730,8 @@ static void *exec_notification_one (void *arg) /* {{{ */ DEBUG ("exec plugin: Child %i exited with status %i.", pid, status); - plugin_notification_meta_free (n->meta); + if (n->meta != NULL) + plugin_notification_meta_free (n->meta); n->meta = NULL; sfree (arg); pthread_exit ((void *) 0);