diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-05-14 17:56:25 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-07-07 14:10:58 -0300 |
commit | 725eeb4af14c6fec4ed26a796cdfd6d50df86d42 (patch) | |
tree | d42f43a268e498d3ff8a891ef274747e4f2a0795 /sysdeps/unix/sysv/linux/tls-internal.h | |
parent | 28aff047818eb1726394296d27b9c7885340bead (diff) | |
download | glibc-725eeb4af14c6fec4ed26a796cdfd6d50df86d42.zip glibc-725eeb4af14c6fec4ed26a796cdfd6d50df86d42.tar.gz glibc-725eeb4af14c6fec4ed26a796cdfd6d50df86d42.tar.bz2 |
string: Use tls-internal on strerror_l
The buffer allocation uses the same strategy of strsignal.
Checked on x86-64-linux-gnu, i686-linux-gnu, powerpc64le-linux-gnu,
and s390x-linux-gnu.
Tested-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/tls-internal.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/tls-internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/tls-internal.h b/sysdeps/unix/sysv/linux/tls-internal.h index 5d712ab..d07f4b6 100644 --- a/sysdeps/unix/sysv/linux/tls-internal.h +++ b/sysdeps/unix/sysv/linux/tls-internal.h @@ -32,6 +32,7 @@ static inline void __glibc_tls_internal_free (void) { free (THREAD_SELF->tls_state.strsignal_buf); + free (THREAD_SELF->tls_state.strerror_l_buf); } #endif |