aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilco Dijkstra <wilco.dijkstra@arm.com>2025-08-04 17:31:49 +0000
committerWilco Dijkstra <wilco.dijkstra@arm.com>2025-08-04 17:31:49 +0000
commit3191dda282e99c07793547e076c7580735967b69 (patch)
tree0e5cd0393820ed58abe19ec7bc15369ff9b2fe85
parentf4e402b3708ba175093253ebe5b40acb6f18b6d1 (diff)
downloadglibc-3191dda282e99c07793547e076c7580735967b69.zip
glibc-3191dda282e99c07793547e076c7580735967b69.tar.gz
glibc-3191dda282e99c07793547e076c7580735967b69.tar.bz2
Revert "Use _int_free_chunk in tcache_thread_shutdown"
This reverts commit 05ef6a49746faedb4262db1476449c1c2c822e95.
-rw-r--r--malloc/malloc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c
index 9a5c9a9..3a8aaeb 100644
--- a/malloc/malloc.c
+++ b/malloc/malloc.c
@@ -3288,7 +3288,6 @@ static void
tcache_thread_shutdown (void)
{
int i;
- mchunkptr p;
tcache_perthread_struct *tcache_tmp = tcache;
tcache_shutting_down = true;
@@ -3310,14 +3309,11 @@ tcache_thread_shutdown (void)
malloc_printerr ("tcache_thread_shutdown(): "
"unaligned tcache chunk detected");
tcache_tmp->entries[i] = REVEAL_PTR (e->next);
- e->key = 0;
- p = mem2chunk (e);
- _int_free_chunk (arena_for_chunk (p), p, chunksize (p), 0);
+ __libc_free (e);
}
}
- p = mem2chunk (tcache_tmp);
- _int_free_chunk (arena_for_chunk (p), p, chunksize (p), 0);
+ __libc_free (tcache_tmp);
}
/* Initialize tcache. In the rare case there isn't any memory available,