From: Florian Forster Date: Fri, 19 Jun 2015 08:54:02 +0000 (+0200) Subject: ipvs plugin: Fix memory leak. X-Git-Tag: collectd-5.5.1~97^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0750cc1006a6ccd906ae8031c1b13507aa47bdf6;p=thirdparty%2Fcollectd.git ipvs plugin: Fix memory leak. --- diff --git a/src/ipvs.c b/src/ipvs.c index fa894897b..cbb554286 100644 --- a/src/ipvs.c +++ b/src/ipvs.c @@ -295,7 +295,10 @@ static void cipvs_submit_service (struct ip_vs_service_entry *se) int i = 0; if (0 != get_pi (se, pi, sizeof (pi))) + { + free (dests); return; + } cipvs_submit_connections (pi, NULL, stats.conns); cipvs_submit_if (pi, "if_packets", NULL, stats.inpkts, stats.outpkts);