diff options
Diffstat (limited to 'ospfd/ospf_gr_helper.c')
| -rw-r--r-- | ospfd/ospf_gr_helper.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ospfd/ospf_gr_helper.c b/ospfd/ospf_gr_helper.c index 0263df48c5..07ce0d66ea 100644 --- a/ospfd/ospf_gr_helper.c +++ b/ospfd/ospf_gr_helper.c @@ -99,9 +99,7 @@ static void ospf_enable_rtr_hash_destroy(struct ospf *ospf) if (ospf->enable_rtr_list == NULL) return; - hash_clean(ospf->enable_rtr_list, ospf_disable_rtr_hash_free); - hash_free(ospf->enable_rtr_list); - ospf->enable_rtr_list = NULL; + hash_clean_and_free(&ospf->enable_rtr_list, ospf_disable_rtr_hash_free); } /* |
