diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2011-12-07 00:04:46 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2011-12-07 01:23:58 +0400 |
commit | 04d5e24d7425a52f13abcb6d2a30aa6246d837e7 (patch) | |
tree | a90bcdbe8f51f30c94dc5f10f4b5749e6dd6094e | |
parent | 46901400a3401a4a6caa40435241b4546bb2a5c5 (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.c | 1 |
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); } |