]> git.puffer.fish Git - mirror/frr.git/commit
lib: cleanup red-herring memleaks in parent of daemonizing fork 11436/head
authorChristian Hopps <chopps@labn.net>
Fri, 17 Jun 2022 06:04:51 +0000 (02:04 -0400)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Sun, 19 Jun 2022 09:50:21 +0000 (09:50 +0000)
commit757aa599ef22fa83a9e9b7c90c27e53e7d0832e5
treec00f7c95b2718a03edec32310e4e07cd7808b83e
parent4647611db6479c30d58b60c52de595dc0f29991d
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>
(cherry picked from commit 1213e46bfd4aaf2897787b4dc03879d4d1b81fa6)
lib/libfrr.c