summaryrefslogtreecommitdiff
path: root/bgpd/bgp_network.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_network.c')
-rw-r--r--bgpd/bgp_network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c
index e3048687..b2708e7b 100644
--- a/bgpd/bgp_network.c
+++ b/bgpd/bgp_network.c
@@ -263,13 +263,13 @@ bgp_getsockname (struct peer *peer)
{
if (peer->su_local)
{
- XFREE (MTYPE_TMP, peer->su_local);
+ sockunion_free (peer->su_local);
peer->su_local = NULL;
}
if (peer->su_remote)
{
- XFREE (MTYPE_TMP, peer->su_remote);
+ sockunion_free (peer->su_remote);
peer->su_remote = NULL;
}