From 0948c3af9dfb3bc1312d6bed2f3a6bfd4e96eef4 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 5 Sep 2012 12:24:37 -0700 Subject: Always check dtv before freeing dtv[-1] --- elf/dl-tls.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'elf') 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) -- cgit 1.4.1