Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 89c4f90

Browse files
ZackerySpytzserhiy-storchaka
authored andcommitted
bpo-35470: Fix a reference counting bug in _PyImport_FindExtensionObjectEx(). (pythonGH-11128)
1 parent c5dc60e commit 89c4f90

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Python/import.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,6 @@ _PyImport_FindExtensionObjectEx(PyObject *name, PyObject *filename,
749749
}
750750
if (_PyState_AddModule(mod, def) < 0) {
751751
PyMapping_DelItem(modules, name);
752-
Py_DECREF(mod);
753752
return NULL;
754753
}
755754
if (Py_VerboseFlag)

0 commit comments

Comments
 (0)