Fixes a memory leak in RIP.
This commit is contained in:
parent
faf58cec4d
commit
3cb6c83f1a
1 changed files with 2 additions and 0 deletions
|
@ -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) &&
|
(ipa_equal(old->attrs->from, new->attrs->from) &&
|
||||||
(old->u.rip.metric != new->u.rip.metric)) )
|
(old->u.rip.metric != new->u.rip.metric)) )
|
||||||
rte_update(tab, net, p, p, new);
|
rte_update(tab, net, p, p, new);
|
||||||
|
else
|
||||||
|
rte_free(new);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue