lib: cleanup red-herring memleaks in parent of daemonizing fork

- The parent of the daemonizing fork reports memleaks for the early
northbound allocations (libyang). If these were real memleaks these
would show up in the child as well; however, ignoring all memleaks in
the parent of the fork is too hard a sale. Instead, spend some CPU
cycles cleaning up the allocations in the parent after the fork and
immeidatley prior to exiting the parent after the daemonizing fork.

Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
Christian Hopps 2022-06-17 02:04:51 -04:00
parent 4151ca0ada
commit 1213e46bfd
No known key found for this signature in database
GPG Key ID: 2E1D830ED7B83025

View File

@ -963,6 +963,8 @@ static void frr_daemonize(void)
}
close(fds[1]);
nb_terminate();
yang_terminate();
frr_daemon_wait(fds[0]);
}