This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1bb4bd1
)
Fix MYMALLOC (PERL_MALLOC) build on Windows
author
Steve Hay
<steve.m.hay@googlemail.com>
Fri, 22 Nov 2019 11:37:13 +0000
(11:37 +0000)
committer
Steve Hay
<steve.m.hay@googlemail.com>
Fri, 22 Nov 2019 11:37:13 +0000
(11:37 +0000)
Commit
34716e2a6e
changed the WIN32 version of Perl_my_setenv() from using
Newx() to using safesysmalloc() (in S_env_alloc()), but neglected to make
the corresponding change from Safefree() to safesysfree().
util.c
patch
|
blob
|
blame
|
history
diff --git
a/util.c
b/util.c
index
307eb88
..
861633e
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-2257,7
+2257,7
@@
Perl_my_setenv(pTHX_ const char *nam, const char *val)
envstr = S_env_alloc(NULL, nlen, vlen, 2, 1);
my_setenv_format(envstr, nam, nlen, val, vlen);
(void)PerlEnv_putenv(envstr);
-
Safe
free(envstr);
+
safesys
free(envstr);
}
# endif /* WIN32 || NETWARE */