On 11/13/22 12:50, Dave Mitchell wrote: > On Sun, Nov 13, 2022 at 08:39:33PM +0100, Uwe Düffert wrote: >> Full configure line used now is in >> https://uwe-dueffert.de/code/perl5.37.5/texinfo-7.0_doc_problem.sh >> >> And produces this updated valgrind output: >> https://uwe-dueffert.de/code/perl5.37.5/texinfo-7.0_valgrind.log > > Thanks. > > So, threaded, non-optimised build. > > Within Perl_switch_to_global_locale(), the memory is being allocated by > > for (unsigned i = 0; i < NOMINAL_LC_ALL_INDEX; i++) { > curlocales[i] = querylocale_i(i); > } > > and freed 20 lines down in > > for (unsigned int i = 0; i < NOMINAL_LC_ALL_INDEX; i++) { > Safefree(curlocales[i]); > } > > And presumably being added to the save stack somewhere in-between. > > Karl? > THank you uwe for reporting this. 2d0710deb09d8141e10a6e3a8d21f3d7f02f1523 should fix it. (But I've been wrong before, and recently enough that I haven't forgotten)Thread Previous | Thread Next