summaryrefslogtreecommitdiff
path: root/bgpd/bgp_routemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_routemap.c')
-rw-r--r--bgpd/bgp_routemap.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c
index 98e5a98f..bc9b6f78 100644
--- a/bgpd/bgp_routemap.c
+++ b/bgpd/bgp_routemap.c
@@ -1223,9 +1223,6 @@ route_set_community (void *rule, struct prefix *prefix,
attr->community = new;
- if (old)
- community_free (old);
-
attr->flag |= ATTR_FLAG_BIT (BGP_ATTR_COMMUNITIES);
}