use libc-internal malloc for newlocale/freelocale
authorRich Felker <dalias@aerifal.cx>
Wed, 9 Dec 2020 22:11:05 +0000 (17:11 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 9 Dec 2020 22:11:05 +0000 (17:11 -0500)
commit1e4204d522670a1d8b8ab85f1cfefa960547e8af
tree807a8e86728f9b18e6f18d9ed0b75fe22e8a020c
parent36246b347cd135399bc79f9b6617d9a120c00a0d
use libc-internal malloc for newlocale/freelocale

this is necessary for MT-fork correctness now that the code runs under
locale lock. it would not be hard to avoid, but __get_locale is
already using libc-internal malloc anyway. this can be reconsidered
during locale overhaul later if needed.
src/locale/freelocale.c
src/locale/newlocale.c