summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--instance.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/instance.c b/instance.c
index 70380af..b84e7c8 100644
--- a/instance.c
+++ b/instance.c
@@ -222,6 +222,8 @@ instance_config_move(struct service_instance *in, struct service_instance *in_sr
in->command = in_src->command;
in->name = in_src->name;
in->node.avl.key = in_src->node.avl.key;
+
+ free(in->config);
in->config = in_src->config;
in_src->config = NULL;
}