From ca45e62bd98eff5f98960bb16e4ff41f377abd44 Mon Sep 17 00:00:00 2001
From: Rich Megginson <rmeggins@redhat.com>
Date: Tue, 21 Jun 2011 15:58:49 -0700
Subject: [PATCH] ITS#6862 MozNSS - workaround PR_SetEnv bug

---
 libraries/libldap/tls_m.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libraries/libldap/tls_m.c b/libraries/libldap/tls_m.c
index 7be703b490..224b571842 100644
--- a/libraries/libldap/tls_m.c
+++ b/libraries/libldap/tls_m.c
@@ -2891,7 +2891,9 @@ tlsm_init( void )
 	 * context in the child.
 	 */
 	if ( !nofork ) {
-		PR_SetEnv( "NSS_STRICT_NOFORK=DISABLED" );
+		/* will leak one time */
+		char *noforkenvvar = PL_strdup( "NSS_STRICT_NOFORK=DISABLED" );
+		PR_SetEnv( noforkenvvar );
 	}
 
 	return 0;
-- 
GitLab