From 4fe65b991edfb15a57da188698065b528e1e7e0e Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 25 Jun 2012 23:25:03 +0200 Subject: [PATCH] fix a memleak --- instance.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/instance.c b/instance.c index 70380af..b84e7c8 100644 --- 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; } -- 2.11.0