From: Stephen Hemminger Date: Tue, 6 Dec 2011 20:04:46 +0000 (+0400) Subject: bgpd: cleanup privs on termination X-Git-Tag: frr-2.0-rc1~1981 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=04d5e24d7425a52f13abcb6d2a30aa6246d837e7;p=mirror%2Ffrr.git bgpd: cleanup privs on termination When doing valgrind testing, the privledges from zprivs_init() need to be cleaned up on exit. --- diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c index 0e85d57e53..822805ce73 100644 --- a/bgpd/bgp_main.c +++ b/bgpd/bgp_main.c @@ -197,6 +197,7 @@ sigint (void) if (! retain_mode) bgp_terminate (); + zprivs_terminate (&bgpd_privs); bgp_exit (0); }