Prepare for upcoming POSIXed putenv() rewrite:
don't free memory after putenv()
This commit is contained in:
parent
4c04e48cf3
commit
123c99294b
@ -567,8 +567,9 @@ export_pam_environment(void)
|
|||||||
|
|
||||||
for (pp = environ_pam; *pp != NULL; pp++) {
|
for (pp = environ_pam; *pp != NULL; pp++) {
|
||||||
if (ok_to_export(*pp))
|
if (ok_to_export(*pp))
|
||||||
putenv(*pp);
|
(void)putenv(*pp);
|
||||||
free(*pp);
|
else
|
||||||
|
free(*pp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user