Prepare for upcoming POSIXed putenv() rewrite:
don't free memory after putenv()
This commit is contained in:
parent
6b3ecf71ea
commit
2efaac818f
@ -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