summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 39f7f6bb57..1de61eeb5c 100644
--- a/perl.c
+++ b/perl.c
@@ -1149,6 +1149,11 @@ perl_destruct(pTHXx)
PL_langinfo_buf = NULL;
}
+ if (PL_stdize_locale_buf) {
+ Safefree(PL_stdize_locale_buf);
+ PL_stdize_locale_buf = NULL;
+ }
+
#ifdef USE_LOCALE_CTYPE
SvREFCNT_dec(PL_warn_locale);
PL_warn_locale = NULL;