summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_mpath.c
diff options
context:
space:
mode:
authorSri Mohana Singamsetty <msingamsetty@vmware.com>2018-10-22 21:58:39 +0200
committerSri Mohana Singamsetty <msingamsetty@vmware.com>2018-10-23 18:52:32 +0200
commit3c1f53dee9a4edc36fa52eedcea08b2ea36445ae (patch)
tree27ab2ed36dab6c37afafdaec66a4946443d47589 /bgpd/bgp_mpath.c
parentMerge pull request #3214 from donaldsharp/ospf_crash (diff)
downloadfrr-3c1f53dee9a4edc36fa52eedcea08b2ea36445ae.tar.xz
frr-3c1f53dee9a4edc36fa52eedcea08b2ea36445ae.zip
bgpd:Fixing the signature of community_free function
community_free, lcommunity_free and ecommunity_free are similar type of functions. Most of the places, these three are called together. The signature of community_free is different from other two functions. Modified the community_free API signature to align with other two functions to avoid any confusion. There is no functionality impact with this and this is just to avoid any confusion. Testing: manual testing and show commands Signed-off-by: Sri Mohana Singamsetty msingamsetty@vmware.com
Diffstat (limited to 'bgpd/bgp_mpath.c')
-rw-r--r--bgpd/bgp_mpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_mpath.c b/bgpd/bgp_mpath.c
index b868dba97..241146e45 100644
--- a/bgpd/bgp_mpath.c
+++ b/bgpd/bgp_mpath.c
@@ -749,7 +749,7 @@ void bgp_path_info_mpath_aggregate_update(struct bgp_path_info *new_best,
mpinfo->attr->community);
community =
community_uniq_sort(commerge);
- community_free(commerge);
+ community_free(&commerge);
} else
community = community_dup(
mpinfo->attr->community);