summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-12-10 21:21:21 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2015-12-10 21:26:17 +0100
commit620418fa3b5911f54fb76f01b76b1706a46c3bb2 (patch)
tree7da5e540fd316361cf357a90421d8009ba497c51 /common.c
parent28e4bc13996073a8f7777abba06d53396dfe9d27 (diff)
downloadxK-620418fa3b5911f54fb76f01b76b1706a46c3bb2.tar.gz
xK-620418fa3b5911f54fb76f01b76b1706a46c3bb2.tar.xz
xK-620418fa3b5911f54fb76f01b76b1706a46c3bb2.zip
degesch: add a test for configuration
Diffstat (limited to 'common.c')
-rw-r--r--common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common.c b/common.c
index da937a1..cf950c8 100644
--- a/common.c
+++ b/common.c
@@ -2074,6 +2074,7 @@ static void
config_load (struct config *self, struct config_item *root)
{
hard_assert (root->type == CONFIG_ITEM_OBJECT);
+ if (self->root) config_item_destroy (self->root);
self->root = root;
struct str_map_iter iter;