Skip to content

Commit

Permalink
bpo-35470: Fix a reference counting bug in _PyImport_FindExtensionObj…
Browse files Browse the repository at this point in the history
…ectEx(). (pythonGH-11128)
  • Loading branch information
ZackerySpytz authored and serhiy-storchaka committed Jan 10, 2019
1 parent c5dc60e commit 89c4f90
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Python/import.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,6 @@ _PyImport_FindExtensionObjectEx(PyObject *name, PyObject *filename,
}
if (_PyState_AddModule(mod, def) < 0) {
PyMapping_DelItem(modules, name);
Py_DECREF(mod);
return NULL;
}
if (Py_VerboseFlag)
Expand Down

0 comments on commit 89c4f90

Please sign in to comment.