summaryrefslogtreecommitdiff
path: root/bgpd/bgp_table.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_table.c')
-rw-r--r--bgpd/bgp_table.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bgpd/bgp_table.c b/bgpd/bgp_table.c
index 8465ada996..e01bf39113 100644
--- a/bgpd/bgp_table.c
+++ b/bgpd/bgp_table.c
@@ -63,7 +63,7 @@ struct bgp_dest *bgp_dest_lock_node(struct bgp_dest *dest)
const char *bgp_dest_get_prefix_str(struct bgp_dest *dest)
{
const struct prefix *p = NULL;
- static char str[PREFIX_STRLEN] = {0};
+ static char str[PREFIX_STRLEN_EXTENDED] = {0};
p = bgp_dest_get_prefix(dest);
if (p)
@@ -117,6 +117,9 @@ static void bgp_node_destroy(route_table_delegate_t *delegate,
node->info = NULL;
}
+ if (family2afi(node->p.family) == AFI_LINKSTATE)
+ prefix_linkstate_ptr_free(&node->p);
+
XFREE(MTYPE_ROUTE_NODE, node);
}