diff options
author | ache <ache@FreeBSD.org> | 2007-04-30 12:44:04 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2007-04-30 12:44:04 +0000 |
commit | 4c04e48cf3ae4edc0fad4787bf918ca648181fdf (patch) | |
tree | f0f08cbdedf7f6d30e5714005b5a1f2febbaa0e4 /usr.bin/login/login.c | |
parent | 28a59d2af66983e458924f52236e0459b03075cf (diff) | |
download | FreeBSD-src-4c04e48cf3ae4edc0fad4787bf918ca648181fdf.zip FreeBSD-src-4c04e48cf3ae4edc0fad4787bf918ca648181fdf.tar.gz |
Prepare for upcoming POSIXed putenv() rewrite:
don't free memory after putenv()
Diffstat (limited to 'usr.bin/login/login.c')
-rw-r--r-- | usr.bin/login/login.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 7827ea1..d52ab47 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -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! */ } } } |