[PATCH 05/13] string: Remove old TLS usage on strsignal

Florian Weimer fw@deneb.enyo.de
Mon Jun 1 18:43:26 GMT 2020


* Adhemerval Zanella:

> My confusion in fact, this is another issue indeed.  I added it just
> to follow the small optimization dony by __strerror_thread_freeres
> to avoid pulling the free code on static usage.

Yes, it requires a separate fix (eventually, not this series).

> So do you think it would be better to just call free on
> __libc_thread_freeres (it should be ok since code initializes it to
> NULL)? If so, maybe also do the same for __strerror_thread_freeres?

Yes, if it is just a free call that only pulls in malloc, that should
be okay.


More information about the Libc-alpha mailing list