summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-03-08 11:44:33 (GMT)
committerGitHub <noreply@github.com>2017-03-08 11:44:33 (GMT)
commit9fbb65e6464b56c6d677090e185c9fe16a80ed96 (patch)
treec2d6d513028f2cdc67c522670a83d5cd09006099
parent6c6186da42bf0080f273b439f06d2135f94a16d5 (diff)
downloadcpython-9fbb65e6464b56c6d677090e185c9fe16a80ed96.zip
cpython-9fbb65e6464b56c6d677090e185c9fe16a80ed96.tar.gz
cpython-9fbb65e6464b56c6d677090e185c9fe16a80ed96.tar.bz2
bpo-29655: Fixed possible reference leaks in `import *`. (#301) (#510)
Original patch by Matthias Bussonnier. (cherry picked from commit 160edb43571311a3785785c1dfa784afc52d87be)
-rw-r--r--Python/ceval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 733f077..0983651 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);