summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-09-10 13:32:54 (GMT)
committerSteve Dower <steve.dower@python.org>2019-09-10 13:32:54 (GMT)
commita511c7a4961a684db1f8d0ed438822d87d7d3dcf (patch)
treebb46581c0c671559bca5acb66335e59760939197
parent88bdb9280b251d753f1b1c8d9183de0fff003622 (diff)
downloadcpython-a511c7a4961a684db1f8d0ed438822d87d7d3dcf.zip
cpython-a511c7a4961a684db1f8d0ed438822d87d7d3dcf.tar.gz
cpython-a511c7a4961a684db1f8d0ed438822d87d7d3dcf.tar.bz2
bpo-38090: Fix reference leak in ceval.c (GH-15848)
-rw-r--r--Python/ceval.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index d280d79..01e2a1b 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -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 "