Skip to content

Commit 45bc392

Browse files
miss-islingtonpablogsal
authored andcommitted
bpo-38090: Fix reference leak in ceval.c (GH-15848)
(cherry picked from commit a511c7a) Co-authored-by: Pablo Galindo <[email protected]>
1 parent 206e4c3 commit 45bc392

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
@@ -5238,7 +5238,6 @@ import_from(PyThreadState *tstate, PyObject *v, PyObject *name)
52385238
else {
52395239
_Py_IDENTIFIER(__spec__);
52405240
PyObject *spec = _PyObject_GetAttrId(v, &PyId___spec__);
5241-
Py_XINCREF(spec);
52425241
const char *fmt =
52435242
_PyModuleSpec_IsInitializing(spec) ?
52445243
"cannot import name %R from partially initialized module %R "

0 commit comments

Comments
 (0)