@@ -9653,7 +9653,7 @@ Perl_mem_collxfrm_(pTHX_ const char *input_string,
96539653 if (PL_collxfrm_base != 0 ) { /* bad collation => skip */
96549654 DEBUG_L (PerlIO_printf (Perl_debug_log ,
96559655 "mem_collxfrm_: locale's collation is defective\n" ));
9656- goto bad ;
9656+ goto bad_not_toggled ;
96579657 }
96589658
96599659 /* (mult, base) == (0,0) means we need to calculate mult and base
@@ -9779,7 +9779,7 @@ Perl_mem_collxfrm_(pTHX_ const char *input_string,
97799779 DEBUG_L (PerlIO_printf (Perl_debug_log ,
97809780 "mem_collxfrm_: Couldn't find any character to replace"
97819781 " embedded NULs in locale %s with" , PL_collation_name ));
9782- goto bad ;
9782+ goto bad_not_toggled ;
97839783 }
97849784
97859785 DEBUG_L (PerlIO_printf (Perl_debug_log ,
@@ -9920,7 +9920,7 @@ Perl_mem_collxfrm_(pTHX_ const char *input_string,
99209920 "mem_collxfrm_: Couldn't find any character to"
99219921 " replace above-Latin1 chars in locale %s with" ,
99229922 PL_collation_name ));
9923- goto bad ;
9923+ goto bad_not_toggled ;
99249924 }
99259925
99269926 DEBUG_L (PerlIO_printf (Perl_debug_log ,
@@ -10080,7 +10080,7 @@ Perl_mem_collxfrm_(pTHX_ const char *input_string,
1008010080 if (UNLIKELY (! xbuf )) {
1008110081 DEBUG_L (PerlIO_printf (Perl_debug_log ,
1008210082 "mem_collxfrm_: Couldn't malloc %zu bytes\n" , xAlloc ));
10083- goto bad ;
10083+ goto bad_not_toggled ;
1008410084 }
1008510085
1008610086 /* Store the collation id */
@@ -10276,6 +10276,10 @@ Perl_mem_collxfrm_(pTHX_ const char *input_string,
1027610276 DEBUG_L (print_collxfrm_input_and_return (s , s + len , NULL , 0 , utf8 ));
1027710277 CLEANUP_STRXFRM ;
1027810278
10279+ bad_not_toggled :
10280+
10281+ DEBUG_L (print_collxfrm_input_and_return (s , s + len , NULL , 0 , utf8 ));
10282+
1027910283 Safefree (xbuf );
1028010284 * xlen = 0 ;
1028110285
0 commit comments