fix a memleak
authorFelix Fietkau <nbd@openwrt.org>
Mon, 25 Jun 2012 21:25:03 +0000 (23:25 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 25 Jun 2012 21:25:03 +0000 (23:25 +0200)
instance.c

index 70380afab97c66b7430197f7107cfaa40069707c..b84e7c8ff25b8a3adb78dbe9e746252ca0c6fff7 100644 (file)
@@ -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;
 }