diff options
| author | Mark Stapp <mjs@voltanet.io> | 2019-04-09 16:46:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-09 16:46:59 -0400 |
| commit | a5f42f7dea6f1ac3472b94f801e30ffb5130ac48 (patch) | |
| tree | 76e4ab1ff754855928f092ca83d7306dbe240b31 | |
| parent | c8d8450442fbc9967a2e9cbbb5a963dc2ff3de00 (diff) | |
| parent | 8a88f81550def495fbcb9d59324438ebf08d414d (diff) | |
Merge pull request #4114 from chiragshah6/evpn_dev2
zebra: avoid removing node twice from rb_tree
| -rw-r--r-- | zebra/zebra_router.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/zebra/zebra_router.c b/zebra/zebra_router.c index 9e09cbca3f..a81752d205 100644 --- a/zebra/zebra_router.c +++ b/zebra/zebra_router.c @@ -202,10 +202,8 @@ void zebra_router_terminate(void) { struct zebra_router_table *zrt, *tmp; - RB_FOREACH_SAFE (zrt, zebra_router_table_head, &zrouter.tables, tmp) { - RB_REMOVE(zebra_router_table_head, &zrouter.tables, zrt); + RB_FOREACH_SAFE (zrt, zebra_router_table_head, &zrouter.tables, tmp) zebra_router_free_table(zrt); - } work_queue_free_and_null(&zrouter.ribq); meta_queue_free(zrouter.mq); |
