summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_lcommunity.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_lcommunity.c b/bgpd/bgp_lcommunity.c
index ad7cb36afe..395ae52712 100644
--- a/bgpd/bgp_lcommunity.c
+++ b/bgpd/bgp_lcommunity.c
@@ -523,10 +523,10 @@ void lcommunity_del_val(struct lcommunity *lcom, u_char *ptr)
if (lcom->size > 0)
lcom->val =
- XREALLOC(MTYPE_COMMUNITY_VAL, lcom->val,
+ XREALLOC(MTYPE_LCOMMUNITY_VAL, lcom->val,
lcom_length(lcom));
else {
- XFREE(MTYPE_COMMUNITY_VAL, lcom->val);
+ XFREE(MTYPE_LCOMMUNITY_VAL, lcom->val);
lcom->val = NULL;
}
return;