Commit f0afe77c authored by Raymond Hettinger's avatar Raymond Hettinger

Issue #27909: Fix INCREF for possible NULL value

parent 74eda760
......@@ -1056,7 +1056,7 @@ _imp_create_builtin(PyObject *module, PyObject *spec)
mod = _PyImport_FindExtensionObject(name, name);
if (mod || PyErr_Occurred()) {
Py_DECREF(name);
Py_INCREF(mod);
Py_XINCREF(mod);
return mod;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment