summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2011-12-07 00:04:46 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2011-12-07 01:23:58 +0400
commit04d5e24d7425a52f13abcb6d2a30aa6246d837e7 (patch)
treea90bcdbe8f51f30c94dc5f10f4b5749e6dd6094e
parent46901400a3401a4a6caa40435241b4546bb2a5c5 (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 0e85d57e..822805ce 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);
}