bpo-38090: Fix reference leak in ceval.c (GH-15848)

This commit is contained in:
Pablo Galindo 2019-09-10 14:32:54 +01:00 committed by Steve Dower
parent 88bdb9280b
commit a511c7a496
1 changed files with 0 additions and 1 deletions

View File

@ -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 "