diff options
| author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-10-03 11:58:09 +0100 |
|---|---|---|
| committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-11-22 14:31:25 +0000 |
| commit | 32c64139eef90920af88e85c07c168fcada73935 (patch) | |
| tree | dfd5db0319795c8db54b8687652137208b52634a /malloc/alloc_buffer_alloc_array.c | |
| parent | e0bde778546db86042bdf4f4b8eca7f38d01a02e (diff) | |
| download | glibc-32c64139eef90920af88e85c07c168fcada73935.tar.xz glibc-32c64139eef90920af88e85c07c168fcada73935.zip | |
malloc: Don't use __libc_free for tcache cleanup
__libc_free must only be used for memory given out by __libc_malloc
and similar public apis, but tcache stores a cache of already freed
pointers and itself is allocated using internal malloc apis. Strong
double free detection in __libc_free breaks tcache_thread_shutdown,
so use a cut down version of free to reset tcache entries.
Diffstat (limited to 'malloc/alloc_buffer_alloc_array.c')
0 files changed, 0 insertions, 0 deletions
