summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_ri.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_ri.c')
-rw-r--r--ospfd/ospf_ri.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ospfd/ospf_ri.c b/ospfd/ospf_ri.c
index f9e346b1d..d5769c866 100644
--- a/ospfd/ospf_ri.c
+++ b/ospfd/ospf_ri.c
@@ -188,11 +188,9 @@ static int ospf_router_info_unregister()
void ospf_router_info_term(void)
{
- list_delete(OspfRI.pce_info.pce_domain);
- list_delete(OspfRI.pce_info.pce_neighbor);
+ list_delete_and_null(&OspfRI.pce_info.pce_domain);
+ list_delete_and_null(&OspfRI.pce_info.pce_neighbor);
- OspfRI.pce_info.pce_domain = NULL;
- OspfRI.pce_info.pce_neighbor = NULL;
OspfRI.enabled = false;
ospf_router_info_unregister();