diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-08 11:44:33 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-08 11:44:33 (GMT) |
commit | 9fbb65e6464b56c6d677090e185c9fe16a80ed96 (patch) | |
tree | c2d6d513028f2cdc67c522670a83d5cd09006099 | |
parent | 6c6186da42bf0080f273b439f06d2135f94a16d5 (diff) | |
download | cpython-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.c | 1 |
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); |