diff options
-rw-r--r-- | proto/rip/rip.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } /* |