bpo-29655: Fixed possible reference leaks in `import *`. (#301) (#510)

Original patch by Matthias Bussonnier.
(cherry picked from commit 160edb4357)
This commit is contained in:
Serhiy Storchaka 2017-03-08 13:44:33 +02:00 committed by GitHub
parent 6c6186da42
commit 9fbb65e646
1 changed files with 1 additions and 0 deletions

View File

@ -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);