This probably IS the memory leak we're looking for. Alien routes weren't
correctly disposed of.
This commit is contained in:
parent
13b75bacf7
commit
c197d44e17
1 changed files with 5 additions and 1 deletions
|
@ -513,7 +513,10 @@ krt_got_route(struct krt_proto *p, rte *e)
|
||||||
if (KRT_CF->learn)
|
if (KRT_CF->learn)
|
||||||
krt_learn_scan(p, e);
|
krt_learn_scan(p, e);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
krt_trace_in(p, e, "alien route, ignored");
|
krt_trace_in(p, e, "alien route, ignored");
|
||||||
|
rte_free(e);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -522,6 +525,7 @@ krt_got_route(struct krt_proto *p, rte *e)
|
||||||
{
|
{
|
||||||
/* Route to this destination was already seen. Strange, but it happens... */
|
/* Route to this destination was already seen. Strange, but it happens... */
|
||||||
krt_trace_in(p, e, "already seen");
|
krt_trace_in(p, e, "already seen");
|
||||||
|
rte_free(e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue