Prepare for upcoming POSIXed putenv() rewrite:

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

View File

@ -567,8 +567,9 @@ export_pam_environment(void)
for (pp = environ_pam; *pp != NULL; pp++) {
if (ok_to_export(*pp))
putenv(*pp);
free(*pp);
(void)putenv(*pp);
else
free(*pp);
}
}