Free login_cap(3) resources after usage.

Submitted by:	demon
This commit is contained in:
Maxim Konovalov 2003-04-07 10:16:37 +00:00
parent efc5f672bd
commit 0389572f96

View File

@ -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]);