summaryrefslogtreecommitdiffstats
path: root/lib/routemap.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/routemap.c')
-rw-r--r--lib/routemap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/routemap.c b/lib/routemap.c
index a4a8a2bb2..dc89390a9 100644
--- a/lib/routemap.c
+++ b/lib/routemap.c
@@ -2932,7 +2932,11 @@ route_map_finish (void)
/* cleanup route_map */
while (route_map_master.head)
- route_map_delete (route_map_master.head);
+ {
+ struct route_map *map = route_map_master.head;
+ map->to_be_processed = 0;
+ route_map_delete (map);
+ }
for (i = 1; i < ROUTE_MAP_DEP_MAX; i++)
hash_free(route_map_dep_hash[i]);