exec plugin: Avoid a warning when freeing meta data.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 14 Sep 2009 14:01:48 +0000 (16:01 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 14 Sep 2009 14:02:31 +0000 (16:02 +0200)
src/exec.c

index 4405985..1f8a9ac 100644 (file)
@@ -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);