mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Always check dtv before freeing dtv[-1]
This commit is contained in:
@ -477,9 +477,7 @@ _dl_deallocate_tls (void *tcb, bool dealloc_tcb)
|
||||
free (dtv[1 + cnt].pointer.val);
|
||||
|
||||
/* The array starts with dtv[-1]. */
|
||||
#ifdef SHARED
|
||||
if (dtv != GL(dl_initial_dtv))
|
||||
#endif
|
||||
free (dtv - 1);
|
||||
|
||||
if (dealloc_tcb)
|
||||
|
Reference in New Issue
Block a user