Prepare for upcoming POSIXed putenv() rewrite:
don't free memory after putenv()
This commit is contained in:
parent
28a59d2af6
commit
4c04e48cf3
@ -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! */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user