From 2efaac818fb265c1bf28bada95bf68f20432f9c3 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Mon, 30 Apr 2007 12:44:04 +0000 Subject: [PATCH] Prepare for upcoming POSIXed putenv() rewrite: don't free memory after putenv() --- usr.bin/login/login.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 7827ea1da7d2..d52ab4767de4 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! */ } } }