bpo-38090: Fix reference leak in ceval.c (GH-15848)
This commit is contained in:
parent
88bdb9280b
commit
a511c7a496
|
@ -5235,7 +5235,6 @@ import_from(PyThreadState *tstate, PyObject *v, PyObject *name)
|
|||
else {
|
||||
_Py_IDENTIFIER(__spec__);
|
||||
PyObject *spec = _PyObject_GetAttrId(v, &PyId___spec__);
|
||||
Py_XINCREF(spec);
|
||||
const char *fmt =
|
||||
_PyModuleSpec_IsInitializing(spec) ?
|
||||
"cannot import name %R from partially initialized module %R "
|
||||
|
|
Loading…
Reference in New Issue