From db986aded4eb6b3bd76010c196378f43b6e02015 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 8 Aug 2024 13:54:12 -0400 Subject: lib: Cleanup memory associated with modules on shutdown Signed-off-by: Donald Sharp --- lib/libfrr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libfrr.c') diff --git a/lib/libfrr.c b/lib/libfrr.c index 328c6ec8b2..8ea38368b7 100644 --- a/lib/libfrr.c +++ b/lib/libfrr.c @@ -1267,6 +1267,8 @@ void frr_fini(void) /* frrmod_init -> nothing needed / hooks */ rcu_shutdown(); + frrmod_terminate(); + /* also log memstats to stderr when stderr goes to a file*/ if (debug_memstats_at_exit || !isatty(STDERR_FILENO)) have_leftovers = log_memstats(stderr, di->name); -- cgit v1.2.3