aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-02-01 21:51:45 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2016-02-01 21:51:45 +0100
commit9bff16f5ec777d3f4a9f7e8e8140907f3b404fa2 (patch)
treed9ff9c3eb860aca93c872bfce84b16cf0faead03
parent052d2ffc9a3141ef2bb771f70190ed7a0bb9da44 (diff)
downloadliberty-9bff16f5ec777d3f4a9f7e8e8140907f3b404fa2.tar.gz
liberty-9bff16f5ec777d3f4a9f7e8e8140907f3b404fa2.tar.xz
liberty-9bff16f5ec777d3f4a9f7e8e8140907f3b404fa2.zip
Fix config schema application
-rw-r--r--liberty.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/liberty.c b/liberty.c
index 7e3c615..2be7c13 100644
--- a/liberty.c
+++ b/liberty.c
@@ -5299,7 +5299,8 @@ config_schema_initialize_item (struct config_schema *schema,
schema->name, error->message);
error_free (error);
- config_item_destroy (item);
+ if (item)
+ config_item_destroy (item);
return NULL;
}
@@ -5334,7 +5335,7 @@ config_schema_apply_to_object (struct config_schema *schema_array,
error_free (warning);
}
if (e)
- print_fatal ("%s", e->message);
+ exit_fatal ("%s", e->message);
}
}