From: Florian Forster Date: Mon, 14 Sep 2009 14:01:48 +0000 (+0200) Subject: exec plugin: Avoid a warning when freeing meta data. X-Git-Tag: collectd-4.7.4~21 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7f71f1b7a38d7b50af44f403b79aa034b3882f2a;p=collectd.git exec plugin: Avoid a warning when freeing meta data. --- 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);