From 620418fa3b5911f54fb76f01b76b1706a46c3bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Thu, 10 Dec 2015 21:21:21 +0100 Subject: degesch: add a test for configuration --- common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'common.c') 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; -- cgit v1.2.3