diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-01-17 20:17:15 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-01-17 20:17:15 +0100 |
commit | 48a67e2c0a3958faa38fedfd54a1964c1d4c1688 (patch) | |
tree | 236602cb384d4698a292096687ae9d87b542d026 /bgpd/bgp_advertise.c | |
parent | Merge pull request #1634 from qlyoung/vtysh-output-file (diff) | |
download | frr-48a67e2c0a3958faa38fedfd54a1964c1d4c1688.tar.xz frr-48a67e2c0a3958faa38fedfd54a1964c1d4c1688.zip |
bgpd: Remove peer->hash as that it is unused
The peer->hash pointer is allocating a bunch of memory
but is never used. Remove.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_advertise.c')
-rw-r--r-- | bgpd/bgp_advertise.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/bgpd/bgp_advertise.c b/bgpd/bgp_advertise.c index 840cc3575..29b6ca6bf 100644 --- a/bgpd/bgp_advertise.c +++ b/bgpd/bgp_advertise.c @@ -246,8 +246,6 @@ void bgp_sync_init(struct peer *peer) BGP_ADV_FIFO_INIT(&sync->withdraw); BGP_ADV_FIFO_INIT(&sync->withdraw_low); peer->sync[afi][safi] = sync; - peer->hash[afi][safi] = hash_create(baa_hash_key, baa_hash_cmp, - "BGP Sync Hash"); } } @@ -260,9 +258,5 @@ void bgp_sync_delete(struct peer *peer) if (peer->sync[afi][safi]) XFREE(MTYPE_BGP_SYNCHRONISE, peer->sync[afi][safi]); peer->sync[afi][safi] = NULL; - - if (peer->hash[afi][safi]) - hash_free(peer->hash[afi][safi]); - peer->hash[afi][safi] = NULL; } } |