Skip to content

Commit

Permalink
bgpd: fix missing damp info free when cleaning bgp path
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Ryzhov <[email protected]>
  • Loading branch information
idryzhov committed Jul 29, 2021
1 parent 755a977 commit 4538f89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bgpd/bgp_route.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ void bgp_path_info_extra_free(struct bgp_path_info_extra **extra)

e = *extra;

if (e->damp_info)
bgp_damp_info_free(e->damp_info, 0);
e->damp_info = NULL;

if (e->parent) {
struct bgp_path_info *bpi = (struct bgp_path_info *)e->parent;

Expand Down

0 comments on commit 4538f89

Please sign in to comment.