This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
add new warnings to perldelta
[perl5.git] / mg.c
diff --git a/mg.c b/mg.c
index a7af352..fb2b8f1 100644 (file)
--- a/mg.c
+++ b/mg.c
@@ -848,7 +848,7 @@ Perl_magic_clear_all_env(pTHX_ SV *sv, MAGIC *mg)
 #      ifdef CYGWIN
     I32 i;
     for (i = 0; environ[i]; i++)
-       Safefree(environ[i]);
+       safesysfree(environ[i]);
 #      else
 #          ifndef PERL_USE_SAFE_PUTENV
     I32 i;