diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-07-25 19:47:10 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-08-14 22:02:05 +0200 |
commit | fa8b3ca66abee50e57034ef594883011f302057b (patch) | |
tree | 2d611d999ce220f93cb71d55f29a44dae3a251e9 | |
parent | lib, vtysh: fixup style nits for error refs (diff) | |
download | frr-fa8b3ca66abee50e57034ef594883011f302057b.tar.xz frr-fa8b3ca66abee50e57034ef594883011f302057b.zip |
lib: remove still reachable blocks in ferr.c
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
-rw-r--r-- | lib/ferr.c | 1 | ||||
-rw-r--r-- | lib/libfrr.c | 1 |
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); |