Skip to content

Commit a511c7a

Browse files
pablogsalzooba
authored andcommitted
bpo-38090: Fix reference leak in ceval.c (GH-15848)
1 parent 88bdb92 commit a511c7a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Python/ceval.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5235,7 +5235,6 @@ import_from(PyThreadState *tstate, PyObject *v, PyObject *name)
52355235
else {
52365236
_Py_IDENTIFIER(__spec__);
52375237
PyObject *spec = _PyObject_GetAttrId(v, &PyId___spec__);
5238-
Py_XINCREF(spec);
52395238
const char *fmt =
52405239
_PyModuleSpec_IsInitializing(spec) ?
52415240
"cannot import name %R from partially initialized module %R "

0 commit comments

Comments
 (0)