Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
import *
1 parent 53c1892 commit 160edb4Copy full SHA for 160edb4
Python/ceval.c
@@ -2810,13 +2810,16 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
2810
TARGET(IMPORT_STAR) {
2811
PyObject *from = POP(), *locals;
2812
int err;
2813
- if (PyFrame_FastToLocalsWithError(f) < 0)
+ if (PyFrame_FastToLocalsWithError(f) < 0) {
2814
+ Py_DECREF(from);
2815
goto error;
2816
+ }
2817
2818
locals = f->f_locals;
2819
if (locals == NULL) {
2820
PyErr_SetString(PyExc_SystemError,
2821
"no locals found during 'import *'");
2822
2823
2824
}
2825
err = import_all_from(locals, from);
0 commit comments