projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fc0111
)
memdup instance config
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 25 Jun 2012 19:02:38 +0000
(21:02 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 25 Jun 2012 19:02:38 +0000
(21:02 +0200)
instance.c
patch
|
blob
|
history
diff --git
a/instance.c
b/instance.c
index 19454c7e21294ecbdd596e3c6c6a64860fe99118..70380afab97c66b7430197f7107cfaa40069707c 100644
(file)
--- 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;