diff options
author | Doug MacEachern <dougm@covalent.net> | 2001-11-10 00:34:50 +0000 |
---|---|---|
committer | Doug MacEachern <dougm@covalent.net> | 2001-11-10 00:34:50 +0000 |
commit | 4b647fb0fbdf8961608035051911f2c5e7a00c2b (patch) | |
tree | fb542add175f59164388974e404002cd6ddcea30 /perl.c | |
parent | 1279e17736f69bdd4f3a4e3e2755ad9e71f6c2e6 (diff) | |
download | perl-4b647fb0fbdf8961608035051911f2c5e7a00c2b.tar.gz |
when PERL_USE_SAFE_PUTENV is defined environ will not
have been copied so it shouldn't be freed in perl_destruct()
p4raw-id: //depot/perl@12920
Diffstat (limited to 'perl.c')
-rw-r--r-- | perl.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -469,8 +469,10 @@ perl_destruct(pTHXx) } /* jettison our possibly duplicated environment */ - -#ifdef USE_ENVIRON_ARRAY + /* if PERL_USE_SAFE_PUTENV is defined environ will not have been copied + * so we certainly shouldn't free it here + */ +#if defined(USE_ENVIRON_ARRAY) && !defined(PERL_USE_SAFE_PUTENV) if (environ != PL_origenviron) { I32 i; |