From: Sebastian Harl Date: Wed, 10 Oct 2007 18:37:26 +0000 (+0200) Subject: ipvs plugin: Fixed a memory leak in cipvs_submit_services(). X-Git-Tag: collectd-4.2.0~34 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d41d41e31cab4e974132bb4c9d28561e87663e90;p=collectd.git ipvs plugin: Fixed a memory leak in cipvs_submit_services(). The ip_vs_get_dests pointer has not been freed... :-/ Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- diff --git a/src/ipvs.c b/src/ipvs.c index f2f40b45..c670b09d 100644 --- a/src/ipvs.c +++ b/src/ipvs.c @@ -309,6 +309,8 @@ static void cipvs_submit_service (struct ip_vs_service_entry *se) for (i = 0; i < dests->num_dests; ++i) cipvs_submit_dest (pi, &dests->entrytable[i]); + + free (dests); return; } /* cipvs_submit_service */