This was a potential memory leak, but not the one Feela observed.
This one could happen when an import filter of some protocol modified the rte (so that it would be rte_cow()ed) and later rejected it.
This commit is contained in:
parent
b77834b3f4
commit
2adab6ae9c
1 changed files with 2 additions and 0 deletions
|
@ -184,6 +184,8 @@ do_rte_announce(struct announce_hook *a, net *net, rte *new, rte *old, ea_list *
|
|||
p->out_filter && f_run(p->out_filter, &new, &tmpa, rte_update_pool, FF_FORCE_TMPATTR) > F_ACCEPT)
|
||||
{
|
||||
rte_trace_out(D_FILTERS, p, new, "filtered out");
|
||||
if (new != new0)
|
||||
rte_free(new);
|
||||
new = NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue