summaryrefslogtreecommitdiff
path: root/pthread_self.c
diff options
context:
space:
mode:
Diffstat (limited to 'pthread_self.c')
-rw-r--r--pthread_self.c3
1 files changed, 2 insertions, 1 deletions
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