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:
3688e3a
)
fix a memleak
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 25 Jun 2012 21:25:03 +0000
(23:25 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 25 Jun 2012 21:25:03 +0000
(23:25 +0200)
instance.c
patch
|
blob
|
history
diff --git
a/instance.c
b/instance.c
index 70380afab97c66b7430197f7107cfaa40069707c..b84e7c8ff25b8a3adb78dbe9e746252ca0c6fff7 100644
(file)
--- 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;
}