[Bug malloc/17924] 'free' should not set errno
bruno at clisp dot org
sourceware-bugzilla@sourceware.org
Sat Dec 19 22:02:47 GMT 2020
https://sourceware.org/bugzilla/show_bug.cgi?id=17924
--- Comment #4 from Bruno Haible <bruno at clisp dot org> ---
I believe there is also another code path that can lead to free() setting
errno.
Namely, when glibc is not configured with --disable-experimental-malloc,
USE_TCACHE gets defined and enables this code path:
__libc_free -> malloc.c:3147 -> MAYBE_INIT_TCACHE -> malloc.c:3033 ->
tcache_init -> malloc.c:3007 -> _int_malloc -> malloc.c:3580 -> sysmalloc
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list