summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_opaque.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-03-18 20:35:34 +0100
committerDonald Sharp <sharpd@nvidia.com>2023-03-18 20:35:34 +0100
commit7773d0071ab4eb1b725581c525c3e152f2c806c7 (patch)
tree6e6d737d9c69fa7b8e3b9aa3492db4b0d9318fbc /ospfd/ospf_opaque.c
parentMerge pull request #13023 from opensourcerouting/mld-expire-off (diff)
downloadfrr-7773d0071ab4eb1b725581c525c3e152f2c806c7.tar.xz
frr-7773d0071ab4eb1b725581c525c3e152f2c806c7.zip
ospfd: Cleanup some memory leaks on shutdown in ospf_apiserver.c
Clean up some memory leaks found in ospf_apiserver.c Also a crash in the original implementation. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospfd/ospf_opaque.c')
-rw-r--r--ospfd/ospf_opaque.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ospfd/ospf_opaque.c b/ospfd/ospf_opaque.c
index 2e8e48bb5..fa04f092d 100644
--- a/ospfd/ospf_opaque.c
+++ b/ospfd/ospf_opaque.c
@@ -117,6 +117,10 @@ void ospf_opaque_finish(void)
ospf_ext_finish();
+#ifdef SUPPORT_OSPF_API
+ ospf_apiserver_term();
+#endif
+
ospf_sr_finish();
}