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~1918^2~19 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=8502229b7ed198d994017e4fd04000d429ca9c8d;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 778067a81c..f835fe771e 100644 --- a/bgpd/bgp_main.c +++ b/bgpd/bgp_main.c @@ -199,6 +199,7 @@ sigint (void) if (! retain_mode) bgp_terminate (); + zprivs_terminate (&bgpd_privs); bgp_exit (0); }