[Python-checkins] CVS: python/dist/src/Python thread_pthread.h,2.35,2.36
Fred L. Drake
fdrake@users.sourceforge.net
2001年11月09日 08:00:43 -0800
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv9589/Python
Modified Files:
thread_pthread.h
Log Message:
Fix memory leak. This is part of SF patch #478006.
Index: thread_pthread.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/thread_pthread.h,v
retrieving revision 2.35
retrieving revision 2.36
diff -C2 -d -r2.35 -r2.36
*** thread_pthread.h 2001年10月16日 21:13:49 2.35
--- thread_pthread.h 2001年11月09日 16:00:41 2.36
***************
*** 201,205 ****
SET_THREAD_SIGMASK(SIG_SETMASK, &oldmask, NULL);
! #ifdef THREAD_STACK_SIZE
pthread_attr_destroy(&attrs);
#endif
--- 201,205 ----
SET_THREAD_SIGMASK(SIG_SETMASK, &oldmask, NULL);
! #if defined(THREAD_STACK_SIZE) || defined(PTHREAD_SYSTEM_SCHED_SUPPORTED)
pthread_attr_destroy(&attrs);
#endif