[collectd] [PATCH] ipvs plugin: Fixed a memory leak in cipvs_submit_services().
Sebastian Harl
sh at tokkee.org
Wed Oct 10 20:37:26 CEST 2007
The ip_vs_get_dests pointer has not been freed... :-/
Signed-off-by: Sebastian Harl <sh at tokkee.org>
---
src/ipvs.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/ipvs.c b/src/ipvs.c
index f2f40b4..c670b09 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 */
--
1.5.3.3.131.g34c6d-dirty
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.verplant.org/pipermail/collectd/attachments/20071010/372487b8/attachment.pgp
More information about the collectd
mailing list