From: Rich Megginson Date: Tue, 21 Jun 2011 22:58:49 +0000 (-0700) Subject: ITS#6862 MozNSS - workaround PR_SetEnv bug X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5e467e489949c4eb9e22953b3e0450a6a00a7399;p=openldap ITS#6862 MozNSS - workaround PR_SetEnv bug --- 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;