summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2023-01-30 22:22:58 +0100
committerDonatas Abraitis <donatas@opensourcerouting.org>2023-01-30 22:22:58 +0100
commit17ff4f6367520fbac7bde0a3021bdef564a2ccc5 (patch)
treed9af957fe4f65c3e700fa4cbe348241646fe050b /bgpd
parenttests: Check if we vanish hostname/domainname if disabled from another side (diff)
downloadfrr-17ff4f6367520fbac7bde0a3021bdef564a2ccc5.tar.xz
frr-17ff4f6367520fbac7bde0a3021bdef564a2ccc5.zip
bgpd: Free peer's hostname (aka FQDN capability stuff)
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgpd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c
index 1fd394a84..39010e76f 100644
--- a/bgpd/bgpd.c
+++ b/bgpd/bgpd.c
@@ -1156,6 +1156,7 @@ static void peer_free(struct peer *peer)
XFREE(MTYPE_PEER_DESC, peer->desc);
XFREE(MTYPE_BGP_PEER_HOST, peer->host);
+ XFREE(MTYPE_BGP_PEER_HOST, peer->hostname);
XFREE(MTYPE_BGP_PEER_HOST, peer->domainname);
XFREE(MTYPE_BGP_PEER_IFNAME, peer->ifname);