summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2003-04-07 10:16:37 +0000
committermaxim <maxim@FreeBSD.org>2003-04-07 10:16:37 +0000
commit9b881ef3fc4401d749285474437b86ad904c0b01 (patch)
treefb46079094fcd4ec2419353516f0f8f3a3b20398 /usr.sbin
parentd3c5efd512618160903d96c5dec20ad2b1128a70 (diff)
downloadFreeBSD-src-9b881ef3fc4401d749285474437b86ad904c0b01.zip
FreeBSD-src-9b881ef3fc4401d749285474437b86ad904c0b01.tar.gz
Free login_cap(3) resources after usage.
Submitted by: demon
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/jail/jail.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/jail/jail.c b/usr.sbin/jail/jail.c
index 2040ff7..332be28 100644
--- a/usr.sbin/jail/jail.c
+++ b/usr.sbin/jail/jail.c
@@ -83,6 +83,7 @@ main(int argc, char **argv)
if (setusercontext(lcap, pwd, pwd->pw_uid,
LOGIN_SETALL & ~LOGIN_SETGROUP) != 0)
err(1, "setusercontext");
+ login_close(lcap);
}
if (execv(argv[3], argv + 3) != 0)
err(1, "execv: %s", argv[3]);
OpenPOWER on IntegriCloud