Skip to content

Commit

Permalink
bpo-29655: Fixed possible reference leaks in import *. (#301) (#510)
Browse files Browse the repository at this point in the history
Original patch by Matthias Bussonnier.
(cherry picked from commit 160edb4)
  • Loading branch information
serhiy-storchaka committed Mar 8, 2017
1 parent 6c6186d commit 9fbb65e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Python/ceval.c
Expand Up @@ -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);
Expand Down

0 comments on commit 9fbb65e

Please sign in to comment.