summaryrefslogtreecommitdiff
path: root/ospfd/ospf_ri.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2023-11-23 20:21:31 -0300
committerRenato Westphal <renato@opensourcerouting.org>2023-12-01 08:53:28 -0300
commit37f861f1dbeda410c52d3b5f9f685e32a177211c (patch)
treee970b01ae98e34512c66db1f45ae1b67e06a625b /ospfd/ospf_ri.c
parent498505c25aafce1cada7c2761462425f7784703b (diff)
ospfd: improve memory cleanup during shutdown
* On ospf_terminate(), proceed to clear the ospfd global variables even when no OSPF instance is configured * Remove double call to route_map_finish() * Call ospf_opaque_term() to clear the opaque LSA infrastructure * Clear the `OspfRI.area_info` and `om->ospf` global lists. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_ri.c')
-rw-r--r--ospfd/ospf_ri.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ospfd/ospf_ri.c b/ospfd/ospf_ri.c
index 725443f490..c6aaf3f5a0 100644
--- a/ospfd/ospf_ri.c
+++ b/ospfd/ospf_ri.c
@@ -153,6 +153,7 @@ static int ospf_router_info_unregister(void)
void ospf_router_info_term(void)
{
+ list_delete(&OspfRI.area_info);
list_delete(&OspfRI.pce_info.pce_domain);
list_delete(&OspfRI.pce_info.pce_neighbor);