diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-08-08 13:54:12 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-08-08 14:24:59 -0400 | 
| commit | db986aded4eb6b3bd76010c196378f43b6e02015 (patch) | |
| tree | 9950c224c87445be788762cbd7ac552f069a4db0 /lib/libfrr.c | |
| parent | bc16c8ce8d928e4f59f106a4beea0b29fdbe4b44 (diff) | |
lib: Cleanup memory associated with modules on shutdown
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/libfrr.c')
| -rw-r--r-- | lib/libfrr.c | 2 | 
1 files changed, 2 insertions, 0 deletions
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);  | 
