summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_route.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2021-07-29 00:54:03 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2021-07-29 23:59:19 +0200
commit4538f89552a01e6ab3504f8a59ef156b9a14ce1c (patch)
tree1894d4836a978c1b4c60d93f5d782d7decaf9897 /bgpd/bgp_route.c
parentbgpd: fix missing delete from the list in dampening (diff)
downloadfrr-4538f89552a01e6ab3504f8a59ef156b9a14ce1c.tar.xz
frr-4538f89552a01e6ab3504f8a59ef156b9a14ce1c.zip
bgpd: fix missing damp info free when cleaning bgp path
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to '')
-rw-r--r--bgpd/bgp_route.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 08e643ccd..4299ea352 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -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;