From 8502229b7ed198d994017e4fd04000d429ca9c8d Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 7 Dec 2011 00:04:46 +0400 Subject: bgpd: cleanup privs on termination When doing valgrind testing, the privledges from zprivs_init() need to be cleaned up on exit. --- bgpd/bgp_main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bgpd/bgp_main.c') diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c index 778067a8..f835fe77 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); } -- cgit v1.2.1