summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ferr.c1
-rw-r--r--lib/libfrr.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/ferr.c b/lib/ferr.c
index 3e56d38ae..b0a22d822 100644
--- a/lib/ferr.c
+++ b/lib/ferr.c
@@ -201,6 +201,7 @@ void ferr_ref_fini(void)
{
pthread_mutex_lock(&refs_mtx);
{
+ hash_clean(refs, NULL);
hash_free(refs);
refs = NULL;
}
diff --git a/lib/libfrr.c b/lib/libfrr.c
index 154f19eae..d9e51f67c 100644
--- a/lib/libfrr.c
+++ b/lib/libfrr.c
@@ -941,6 +941,7 @@ void frr_fini(void)
/* memory_init -> nothing needed */
vty_terminate();
cmd_terminate();
+ ferr_ref_fini();
zprivs_terminate(di->privs);
/* signal_init -> nothing needed */
thread_master_free(master);