mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
bpo-38090: Fix reference leak in ceval.c (GH-15848)
(cherry picked from commit a511c7a496
)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
This commit is contained in:
parent
206e4c3d35
commit
45bc3928e2
1 changed files with 0 additions and 1 deletions
|
@ -5238,7 +5238,6 @@ import_from(PyThreadState *tstate, PyObject *v, PyObject *name)
|
||||||
else {
|
else {
|
||||||
_Py_IDENTIFIER(__spec__);
|
_Py_IDENTIFIER(__spec__);
|
||||||
PyObject *spec = _PyObject_GetAttrId(v, &PyId___spec__);
|
PyObject *spec = _PyObject_GetAttrId(v, &PyId___spec__);
|
||||||
Py_XINCREF(spec);
|
|
||||||
const char *fmt =
|
const char *fmt =
|
||||||
_PyModuleSpec_IsInitializing(spec) ?
|
_PyModuleSpec_IsInitializing(spec) ?
|
||||||
"cannot import name %R from partially initialized module %R "
|
"cannot import name %R from partially initialized module %R "
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue