summaryrefslogtreecommitdiff
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-11-09 16:00:41 +0000
committerFred Drake <fdrake@acm.org>2001-11-09 16:00:41 +0000
commit718a597cbdab426cb4d4b11b4cd6b83678e8b90d (patch)
tree08c2bb58799f51142a40128b23c52c94e5a15474 /Python/thread_pthread.h
parentb5533abb4646ccc732cfb158cdc7bc25ac5375f5 (diff)
downloadcpython-718a597cbdab426cb4d4b11b4cd6b83678e8b90d.tar.gz
Fix memory leak. This is part of SF patch #478006.
Diffstat (limited to 'Python/thread_pthread.h')
-rw-r--r--Python/thread_pthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
index 0fbafdafc7..6c2bbfd3e7 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -200,7 +200,7 @@ PyThread_start_new_thread(void (*func)(void *), void *arg)
/* Restore signal mask for original thread */
SET_THREAD_SIGMASK(SIG_SETMASK, &oldmask, NULL);
-#ifdef THREAD_STACK_SIZE
+#if defined(THREAD_STACK_SIZE) || defined(PTHREAD_SYSTEM_SCHED_SUPPORTED)
pthread_attr_destroy(&attrs);
#endif
if (success == 0) {