diff options
author | Donald Sharp <sharpd@nvidia.com> | 2024-03-12 18:12:48 +0100 |
---|---|---|
committer | ton31337 <3352707+ton31337@users.noreply.github.com> | 2024-03-13 08:09:10 +0100 |
commit | eedbadf606aae5cfd56fa8179bd3991cc47a7fe5 (patch) | |
tree | d2a2d05214ea7a22543f252d88838fa50d6c8dc8 /ospf6d | |
parent | Merge pull request #15539 from donaldsharp/cleanup_leaky_sieve (diff) | |
download | frr-eedbadf606aae5cfd56fa8179bd3991cc47a7fe5.tar.xz frr-eedbadf606aae5cfd56fa8179bd3991cc47a7fe5.zip |
eigrpd, mgmtd, ospf6d: frr_fini is last
I noticed that ospf6d always had a linked list memory leak.
Tracking it down shows that frr_fini() shuts down the memory
system and prints out memory not cleaned up. eigrpd, mgmtd
and ospf6d all called cleanup functions after frr_fini leaving
memory leaked that was not really leaked.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospf6d')
-rw-r--r-- | ospf6d/ospf6_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ospf6d/ospf6_main.c b/ospf6d/ospf6_main.c index 0e8504c52..abd432033 100644 --- a/ospf6d/ospf6_main.c +++ b/ospf6d/ospf6_main.c @@ -110,9 +110,10 @@ static void __attribute__((noreturn)) ospf6_exit(int status) ospf6_master_delete(); + keychain_terminate(); + frr_fini(); - keychain_terminate(); exit(status); } |