On Thu, Jan 15, 2026 at 06:18:59PM +0100, [email protected] wrote: > > Yes, you are probably right about the wrong 'free' being used. > > > > The function called at that line in LaTeX.pm is index_element_sort_string > > in tta/C/main/manipulate_indices.c. But I don't know which "free" call > > would be responsible under that function or why the Perl malloc would > > have been used. > > I will investigate, there are probably not too many possibilities of > Perl malloc use in relation to index_element_sort_string.
I realised there is actually an extra layer of code above that C file that I referenced. The real entry point is in the following file: tta/perl/XSTexinfo/parser_document/IndicesXS.xs
