Kaydet (Commit) 943395fa authored tarafından Stéphane Wirtel's avatar Stéphane Wirtel Kaydeden (comit) Victor Stinner

bpo-36333: Fix leak _PyRuntimeState_Fini (GH-12400)

üst e130a07e
Fix leak in _PyRuntimeState_Fini. Contributed by Stéphane Wirtel.
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment