Skip to content

Commit 9fbb65e

Browse files
bpo-29655: Fixed possible reference leaks in import *. (#301) (#510)
Original patch by Matthias Bussonnier. (cherry picked from commit 160edb4)
1 parent 6c6186d commit 9fbb65e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/ceval.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2641,6 +2641,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
26412641
if ((x = f->f_locals) == NULL) {
26422642
PyErr_SetString(PyExc_SystemError,
26432643
"no locals found during 'import *'");
2644+
Py_DECREF(v);
26442645
break;
26452646
}
26462647
READ_TIMESTAMP(intr0);

0 commit comments

Comments
 (0)