summaryrefslogtreecommitdiff
path: root/lib/routemap.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-01-06 09:58:21 -0500
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-01-06 09:58:21 -0500
commit3b14d86eed3c042db718c7e006ca5299f473c88e (patch)
tree4efde6b2d77f5229ace3375da3471b0db1daa695 /lib/routemap.c
parent0b0038b8bcf84beda44fb69a60b2620b0387d8e8 (diff)
parent7d53a49360ddceb16db34bc8a84039cb2ecab22c (diff)
Merge remote-tracking branch 'origin/stable/2.0'
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 5f2b2c0dfb..487790bbfb 100644
--- a/lib/routemap.c
+++ b/lib/routemap.c
@@ -2940,9 +2940,13 @@ route_map_finish (void)
}
for (i = 1; i < ROUTE_MAP_DEP_MAX; i++)
- hash_free(route_map_dep_hash[i]);
+ {
+ hash_free(route_map_dep_hash[i]);
+ route_map_dep_hash[i] = NULL;
+ }
hash_free (route_map_master_hash);
+ route_map_master_hash = NULL;
}
/* Initialization of route map vector. */