From: Felix Fietkau Date: Mon, 25 Jun 2012 21:25:03 +0000 (+0200) Subject: fix a memleak X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4fe65b991edfb15a57da188698065b528e1e7e0e;p=oweals%2Fprocd.git fix a memleak --- 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; }