mirror of https://github.com/python/cpython
bpo-35470: Fix a reference counting bug in _PyImport_FindExtensionObjectEx(). (GH-11128)
This commit is contained in:
parent
c5dc60ea85
commit
89c4f90df9
|
@ -749,7 +749,6 @@ _PyImport_FindExtensionObjectEx(PyObject *name, PyObject *filename,
|
||||||
}
|
}
|
||||||
if (_PyState_AddModule(mod, def) < 0) {
|
if (_PyState_AddModule(mod, def) < 0) {
|
||||||
PyMapping_DelItem(modules, name);
|
PyMapping_DelItem(modules, name);
|
||||||
Py_DECREF(mod);
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (Py_VerboseFlag)
|
if (Py_VerboseFlag)
|
||||||
|
|
Loading…
Reference in New Issue