diff options
author | paul <paul> | 2006-03-30 14:12:38 +0000 |
---|---|---|
committer | paul <paul> | 2006-03-30 14:12:38 +0000 |
commit | 2ac7c0fa4e6ffc71a728066308f88a4d687dc199 (patch) | |
tree | 4afefc34b6aff8a03205273e5eea8aa8375a7cc1 | |
parent | 69a8e1e62fab0a7e5c1730054618989ffecddc6c (diff) | |
download | quagga-2ac7c0fa4e6ffc71a728066308f88a4d687dc199.tar.bz2 quagga-2ac7c0fa4e6ffc71a728066308f88a4d687dc199.tar.xz |
[bgpd] release peer specific clear queue in peer_free
2006-03-22 Paul Jakma <paul.jakma@sun.com>
* bgpd.c: (peer_free) release the per-peer workqueue when
freeing the peer.
-rw-r--r-- | bgpd/ChangeLog | 5 | ||||
-rw-r--r-- | bgpd/bgpd.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/bgpd/ChangeLog b/bgpd/ChangeLog index 3f0cad7d..26897f3c 100644 --- a/bgpd/ChangeLog +++ b/bgpd/ChangeLog @@ -1,3 +1,8 @@ +2006-03-22 Paul Jakma <paul.jakma@sun.com> + + * bgpd.c: (peer_free) release the per-peer workqueue when + freeing the peer. + 2006-03-19 Paul Jakma <paul.jakma@sun.com> * bgpd/bgp_vty.c: Add includes to get several structs we want diff --git a/bgpd/bgpd.c b/bgpd/bgpd.c index 9f694f5e..b574a9aa 100644 --- a/bgpd/bgpd.c +++ b/bgpd/bgpd.c @@ -700,7 +700,10 @@ peer_free (struct peer *peer) if (peer->update_if) XFREE (MTYPE_PEER_UPDATE_SOURCE, peer->update_if); - + + if (peer->clear_node_queue) + work_queue_free (peer->clear_node_queue); + memset (peer, 0, sizeof (struct peer)); XFREE (MTYPE_BGP_PEER, peer); |