mirror of
https://github.com/python/cpython.git
synced 2025-07-13 14:25:18 +00:00
Issue #10363: Deallocate global locks in Py_Finalize().
This commit is contained in:
parent
e0aa803714
commit
8db076cf8a
3 changed files with 23 additions and 10 deletions
|
@ -150,6 +150,12 @@ PyInterpreterState_Delete(PyInterpreterState *interp)
|
|||
*p = interp->next;
|
||||
HEAD_UNLOCK();
|
||||
free(interp);
|
||||
#ifdef WITH_THREAD
|
||||
if (interp_head == NULL && head_mutex != NULL) {
|
||||
PyThread_free_lock(head_mutex);
|
||||
head_mutex = NULL;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue