Martin Dunschen <mdunsc...@gmail.com> added the comment:

Here my suggested changes in plain text (I generated these as patches from a 
diff to the current code):

thread.c:
353a354,359
> void PyThread_fini()
> {
>       // should assert here that nkeys == 0
>       PyThread_free_lock(keymutex);
> }
> 


pystate.c:
38a39
> #define HEAD_RELEASE() PyThread_free_lock(head_mutex);
48a50
> #define HEAD_RELEASE() /* Nothing */
140a143
>       HEAD_RELEASE();
422a426,427
> void PyThread_fini(); // forward
> 
428c433,434
<       autoInterpreterState = NULL;;
---
>       autoInterpreterState = NULL;
> PyThread_fini(); // this frees a lock called keymutex in thread.c


import.c
473a474,475
> 
>       PyThread_free_lock(import_lock);

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10363>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to