diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-10 14:31:07 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@python.org> | 2019-09-10 14:31:07 (GMT) |
commit | 45bc3928e232603a97451dea3106d824b0f7a392 (patch) | |
tree | d31ca1cd2eb0c14e0211e1e7da1d1fe4e425e4db /Python | |
parent | 206e4c3d3547b024935ea9655f960061dffbb80f (diff) | |
download | cpython-45bc3928e232603a97451dea3106d824b0f7a392.zip cpython-45bc3928e232603a97451dea3106d824b0f7a392.tar.gz cpython-45bc3928e232603a97451dea3106d824b0f7a392.tar.bz2 |
bpo-38090: Fix reference leak in ceval.c (GH-15848)
(cherry picked from commit a511c7a4961a684db1f8d0ed438822d87d7d3dcf)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index 07ec329..3306fb9 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -5238,7 +5238,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 " |