mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-18 15:30:21 +00:00
Prepare for upcoming POSIXed putenv() rewrite:
don't free memory after putenv()
This commit is contained in:
parent
2efaac818f
commit
9e461e53cc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169125
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user