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? -- "Procrastination grows to fill the available time" -- Mitchell's corollary to Parkinson's LawThread Previous | Thread Next