This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix locale.c under -DPERL_GLOBAL_STRUCT_PRIVATE
authorDavid Mitchell <davem@iabyn.com>
Tue, 2 Apr 2019 09:05:37 +0000 (10:05 +0100)
committerDavid Mitchell <davem@iabyn.com>
Tue, 2 Apr 2019 09:05:37 +0000 (10:05 +0100)
locale.c

index 85059de..81aa00e 100644 (file)
--- a/locale.c
+++ b/locale.c
@@ -5605,6 +5605,7 @@ Perl_thread_locale_term()
 #  ifndef WIN32
 
     {   /* Free up */
+        dVAR;
         locale_t cur_obj = uselocale(LC_GLOBAL_LOCALE);
         if (cur_obj != LC_GLOBAL_LOCALE && cur_obj != PL_C_locale_obj) {
             freelocale(cur_obj);