]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: fix for leaked struct bgp_adj_[in|out] on peer shutdown
authorJorge Boncompte [DTI2] <jorge@dti2.net>
Mon, 7 May 2012 15:17:33 +0000 (15:17 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Mon, 14 Jan 2013 13:42:38 +0000 (14:42 +0100)
commitebbb5fca5ca899a9a125aa2770d3fdf857186bac
treeb2e5f525e5dc30a378dc4ace24f5feca70c33e71
parenta5c851c7ff41ef846e83d62394176ac1753ebf45
bgpd: fix for leaked struct bgp_adj_[in|out] on peer shutdown

    If a peer with soft-reconfiguration configured is cleared, the
function bgp_clear_route_table() doesn't free the bgp_adj_in and bgp_adj_out
structures of route nodes that for some reason, ej. denied by a filter,
don't have routes attached "rn->info == NULL".

Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
Reviewed-by: Leonid Rosenboim <Leonid.Rosenboim@windriver.com>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
bgpd/bgp_route.c