summaryrefslogtreecommitdiff
path: root/zebra/zebra_router.c
diff options
context:
space:
mode:
Diffstat (limited to 'zebra/zebra_router.c')
-rw-r--r--zebra/zebra_router.c4
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);