mirror of
https://github.com/python/cpython.git
synced 2026-04-14 07:41:00 +00:00
gh-145376: Fix various reference leaks (GH-145377)
This commit is contained in:
parent
246227392c
commit
bd13cc09fa
6 changed files with 6 additions and 1 deletions
|
|
@ -5642,6 +5642,7 @@ _imp__set_lazy_attributes_impl(PyObject *module, PyObject *modobj,
|
|||
|
||||
module_dict = get_mod_dict(modobj);
|
||||
if (module_dict == NULL || !PyDict_CheckExact(module_dict)) {
|
||||
Py_DECREF(lazy_submodules);
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue