[tex-live] memory leak with kpathsea_find_file() ?

Vincent Torri vincent.torri at gmail.com
Wed Jun 29 17:59:26 CEST 2016

On Tue, Jun 28, 2016 at 6:46 AM, Akira Kakuto <kakuto at fuk.kindai.ac.jp> wrote:
>>     n = kpathsea_find_file(kpse, name, kpse_tfm_format, 1);
>>     ...
>>     trying to free 'n' with free() leads to errors
> On windows, if I link by using the import library,
> I cannot reproduce the error.
> However if I use the LoadLibrary() method, I can reproduce
> the error. I don't understand why. Presumably my DLL lacks
> something necessary, though it has been useful if used with
> the import library.

maybe some initialization not done. Maybe look at DllMain() to
initialize stuff when the DLL is loaded



Vincent Torri

More information about the tex-live mailing list