summaryrefslogtreecommitdiffstats
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-11-09 16:00:41 (GMT)
committerFred Drake <fdrake@acm.org>2001-11-09 16:00:41 (GMT)
commit03459a5cd776eb5d3c7e427d4007dc1f983975b5 (patch)
treee2535e8c3ef2415c50965cd3010c8046357a51e3 /Python/thread_pthread.h
parentf12a68ccd0b40821fd15044ddb0d51e488d92efd (diff)
downloadcpython-03459a5cd776eb5d3c7e427d4007dc1f983975b5.zip
cpython-03459a5cd776eb5d3c7e427d4007dc1f983975b5.tar.gz
cpython-03459a5cd776eb5d3c7e427d4007dc1f983975b5.tar.bz2
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 0fbafda..6c2bbfd 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) {