mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
bpo-36333: Fix leak _PyRuntimeState_Fini (GH-12400)
This commit is contained in:
parent
e130a07eb2
commit
943395fab9
2 changed files with 6 additions and 0 deletions
|
@ -92,6 +92,11 @@ _PyRuntimeState_Fini(_PyRuntimeState *runtime)
|
|||
runtime->interpreters.mutex = NULL;
|
||||
}
|
||||
|
||||
if (runtime->xidregistry.mutex != NULL) {
|
||||
PyThread_free_lock(runtime->xidregistry.mutex);
|
||||
runtime->xidregistry.mutex = NULL;
|
||||
}
|
||||
|
||||
PyMem_SetAllocator(PYMEM_DOMAIN_RAW, &old_alloc);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue