summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/login/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c
index 7827ea1..d52ab47 100644
--- a/usr.bin/login/login.c
+++ b/usr.bin/login/login.c
@@ -746,7 +746,7 @@ export_pam_environment()
if (pam_env != NULL) {
for (pp = pam_env; *pp != NULL; pp++) {
(void)export(*pp);
- free(*pp);
+ /* Don't free putenv() memory! */
}
}
}
OpenPOWER on IntegriCloud