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 19454c7..70380af 100644
--- a/instance.c
+++ b/instance.c
@@ -246,12 +246,14 @@ instance_free(struct service_instance *in)
uloop_process_delete(&in->proc);
uloop_timeout_cancel(&in->timeout);
instance_config_cleanup(in);
+ free(in->config);
free(in);
}
void
instance_init(struct service_instance *in, struct service *s, struct blob_attr *config)
{
+ config = blob_memdup(config);
in->srv = s;
in->name = blobmsg_name(config);
in->config = config;