summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2011-12-07 00:04:46 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2012-01-02 17:15:42 +0400
commit8502229b7ed198d994017e4fd04000d429ca9c8d (patch)
tree895acf581aa6e900eacc45adaa24bbddfef3640d
parenta80e20d17597253e74e22aed6b1a85417f667b49 (diff)
bgpd: cleanup privs on termination
When doing valgrind testing, the privledges from zprivs_init() need to be cleaned up on exit.
-rw-r--r--bgpd/bgp_main.c1
1 files changed, 1 insertions, 0 deletions
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);
}