From a511c7a4961a684db1f8d0ed438822d87d7d3dcf Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Tue, 10 Sep 2019 14:32:54 +0100 Subject: [PATCH] bpo-38090: Fix reference leak in ceval.c (GH-15848) --- Python/ceval.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Python/ceval.c b/Python/ceval.c index d280d797760..01e2a1b9666 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 "