From: Ondrej Zajicek Date: Fri, 3 Sep 2010 14:32:00 +0000 (+0200) Subject: Fixes a memory leak in RIP. X-Git-Tag: v1.3.0~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cb6c83f1a2eb563e459ce34d0f4850cc9dd4776;p=thirdparty%2Fbird.git Fixes a memory leak in RIP. --- diff --git a/proto/rip/rip.c b/proto/rip/rip.c index 0e5320c8f..4b60d7518 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); } /*