mirror of https://git.musl-libc.org/git/musl
Browse Source
newlocale and freelocale use __libc_malloc and __libc_free, but
duplocale used malloc. If malloc was replaced, this resulted in
invalid free using the wrong allocator when passing the result of
duplocale to freelocale.
Instead, use libc-internal malloc for duplocale.
This bug was introduced by commit
1e4204d522.
master
committed by
Rich Felker
1 changed files with 5 additions and 0 deletions
Loading…
Reference in new issue