diff options
author | maxim <maxim@FreeBSD.org> | 2003-04-07 10:16:37 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2003-04-07 10:16:37 +0000 |
commit | 9b881ef3fc4401d749285474437b86ad904c0b01 (patch) | |
tree | fb46079094fcd4ec2419353516f0f8f3a3b20398 /usr.sbin | |
parent | d3c5efd512618160903d96c5dec20ad2b1128a70 (diff) | |
download | FreeBSD-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.c | 1 |
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]); |