From d6d146f34dfaf47a34a8fd4343a5d33ec0f8c6ee Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 25 Jun 2012 21:02:38 +0200 Subject: [PATCH] memdup instance config --- instance.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2