mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-17 16:48:43 +00:00
Fixes a memory leak in RIP.
This commit is contained in:
parent
faf58cec4d
commit
3cb6c83f1a
@ -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 New Issue
Block a user