]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: Fix memory leaks on shutdown
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 2 Mar 2017 01:26:06 +0000 (20:26 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 2 Mar 2017 01:26:06 +0000 (20:26 -0500)
commit6bf1fe47276a68b0f44651a5f37a9c911d6141bd
treebe6c65ef74df5b6e04575a92e951b3630c3b3426
parentfa48eee332735c108a77db1db358417f853cf434
bgpd: Fix memory leaks on shutdown

The original code on shutdown assumed a 'forced' mode
if there was no process_main_queue.  This construct
was violated by commit 2e02b9b2d1ed29975001d6917f9f726854ec5559
due to not fully understanding the shutdown process.

If we are shutting down, don't store work to do later,
just gracefully don't do it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_route.c