summaryrefslogtreecommitdiff
path: root/pthread/pt-create.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread/pt-create.c')
-rw-r--r--pthread/pt-create.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pthread/pt-create.c b/pthread/pt-create.c
index a88c498..a593ad0 100644
--- a/pthread/pt-create.c
+++ b/pthread/pt-create.c
@@ -216,6 +216,7 @@ __pthread_create_internal (struct __pthread **thread,
failed_setup:
#ifdef ENABLE_TLS
_dl_deallocate_tls (pthread->tcb, 1);
+ pthread->tcb = NULL;
failed_thread_tls_alloc:
#endif /* ENABLE_TLS */
__pthread_thread_dealloc (pthread);