From 3cb6c83f1a2eb563e459ce34d0f4850cc9dd4776 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Fri, 3 Sep 2010 16:32:00 +0200 Subject: [PATCH] Fixes a memory leak in RIP. --- proto/rip/rip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 0e5320c8..4b60d751 100644 --- a/proto/rip/rip.c +++ b/proto/rip/rip.c @@ -269,6 +269,8 @@ rip_rte_update_if_better(rtable *tab, net *net, struct proto *p, rte *new) (ipa_equal(old->attrs->from, new->attrs->from) && (old->u.rip.metric != new->u.rip.metric)) ) rte_update(tab, net, p, p, new); + else + rte_free(new); } /*