We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cbd17c commit 3e3d57dCopy full SHA for 3e3d57d
1 file changed
Python/import.c
@@ -743,7 +743,6 @@ _PyImport_FindExtensionObjectEx(PyObject *name, PyObject *filename,
743
}
744
if (_PyState_AddModule(mod, def) < 0) {
745
PyMapping_DelItem(modules, name);
746
- Py_DECREF(mod);
747
return NULL;
748
749
if (Py_VerboseFlag)
0 commit comments