From 9fbb65e6464b56c6d677090e185c9fe16a80ed96 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 8 Mar 2017 13:44:33 +0200 Subject: [PATCH] bpo-29655: Fixed possible reference leaks in `import *`. (#301) (#510) Original patch by Matthias Bussonnier. (cherry picked from commit 160edb43571311a3785785c1dfa784afc52d87be) --- Python/ceval.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/ceval.c b/Python/ceval.c index 733f0776ecf..09836519988 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -2641,6 +2641,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) if ((x = f->f_locals) == NULL) { PyErr_SetString(PyExc_SystemError, "no locals found during 'import *'"); + Py_DECREF(v); break; } READ_TIMESTAMP(intr0);