From a5f3d62017a8e705016d0083a24837d6a56f178d Mon Sep 17 00:00:00 2001 From: rpj Date: Mon, 1 Sep 2003 04:53:45 +0000 Subject: Reuse the thread struct on failure. --- pthread_self.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pthread_self.c') diff --git a/pthread_self.c b/pthread_self.c index bd67e83..e7a81b8 100644 --- a/pthread_self.c +++ b/pthread_self.c @@ -110,7 +110,8 @@ pthread_self (void) FALSE, DUPLICATE_SAME_ACCESS ) ) { - free( self ); + /* Thread structs are never freed. */ + ptw32_threadReusePush(self); return (NULL); } #endif -- cgit v1.2.3