ipvs plugin: Fixed a memory leak in cipvs_submit_services().
authorSebastian Harl <sh@tokkee.org>
Wed, 10 Oct 2007 18:37:26 +0000 (20:37 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Fri, 12 Oct 2007 16:42:30 +0000 (18:42 +0200)
The ip_vs_get_dests pointer has not been freed... :-/

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/ipvs.c

index f2f40b4..c670b09 100644 (file)
@@ -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 */