aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-09-05 12:24:37 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-09-06 11:51:52 -0700
commit0948c3af9dfb3bc1312d6bed2f3a6bfd4e96eef4 (patch)
tree1559f2e2c3a92127e68715b8758b44f6632ad63e /elf
parentf5fce0629a6a75e2e5969a87b01c37e8c45c1f4d (diff)
downloadglibc-0948c3af9dfb3bc1312d6bed2f3a6bfd4e96eef4.tar
glibc-0948c3af9dfb3bc1312d6bed2f3a6bfd4e96eef4.tar.gz
glibc-0948c3af9dfb3bc1312d6bed2f3a6bfd4e96eef4.tar.bz2
glibc-0948c3af9dfb3bc1312d6bed2f3a6bfd4e96eef4.zip
Always check dtv before freeing dtv[-1]
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-tls.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/elf/dl-tls.c b/elf/dl-tls.c
index 4138312b94..ff59e9e773 100644
--- a/elf/dl-tls.c
+++ b/elf/dl-tls.c
@@ -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)