From 7f71f1b7a38d7b50af44f403b79aa034b3882f2a Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 14 Sep 2009 16:01:48 +0200 Subject: [PATCH] exec plugin: Avoid a warning when freeing meta data. --- src/exec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.30.2