summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
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;