summaryrefslogtreecommitdiff
path: root/eigrpd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-03-12 13:12:48 -0400
committerton31337 <3352707+ton31337@users.noreply.github.com>2024-03-13 07:09:10 +0000
commiteedbadf606aae5cfd56fa8179bd3991cc47a7fe5 (patch)
treed2a2d05214ea7a22543f252d88838fa50d6c8dc8 /eigrpd
parenta3df790eb284de95db2b6a8ea384083c1bfdc5ea (diff)
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 'eigrpd')
-rw-r--r--eigrpd/eigrp_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/eigrpd/eigrp_main.c b/eigrpd/eigrp_main.c
index 1491c569ec..d387b9be18 100644
--- a/eigrpd/eigrp_main.c
+++ b/eigrpd/eigrp_main.c
@@ -94,10 +94,11 @@ static void sighup(void)
static void sigint(void)
{
zlog_notice("Terminating on signal");
- eigrp_terminate();
keychain_terminate();
+ eigrp_terminate();
+
exit(0);
}