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 c5dc60e commit 89c4f90Copy full SHA for 89c4f90
1 file changed
Python/import.c
@@ -749,7 +749,6 @@ _PyImport_FindExtensionObjectEx(PyObject *name, PyObject *filename,
749
}
750
if (_PyState_AddModule(mod, def) < 0) {
751
PyMapping_DelItem(modules, name);
752
- Py_DECREF(mod);
753
return NULL;
754
755
if (Py_VerboseFlag)
0 commit comments