This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #126240] avoid leaking memory when setting $ENV{foo} on darwin
authorTony Cook <tony@develop-help.com>
Wed, 6 Jan 2016 03:27:46 +0000 (14:27 +1100)
committerTony Cook <tony@develop-help.com>
Wed, 6 Jan 2016 03:27:46 +0000 (14:27 +1100)
commit12ffbb10fe94c82dda90efa15d691ababa5b8b8f
treeecd0dbe2ee5f5adfa7512045b909767b38b405ea
parent015aa1a8bb85e915bcad7260c8d42e63732ebce5
[perl #126240] avoid leaking memory when setting $ENV{foo} on darwin

My change in e396210 was incomplete, that change was intended to
force use of setenv()/unsetenv() on Darwin, but ended up using putenv()
instead, which is a leaky mechanism.

Added darwin to the list of many others that work better with setenv()/
unsetenv().
util.c