Prepare for upcoming POSIXed putenv() rewrite:

don't free memory after putenv()
This commit is contained in:
Andrey A. Chernov 2007-04-30 12:44:04 +00:00
parent 6b3ecf71ea
commit 2efaac818f

View File

@ -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! */
}
}
}