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.
import *
1 parent bb59d89 commit 7accf20Copy full SHA for 7accf20
Python/ceval.c
@@ -2857,13 +2857,16 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
2857
TARGET(IMPORT_STAR) {
2858
PyObject *from = POP(), *locals;
2859
int err;
2860
- if (PyFrame_FastToLocalsWithError(f) < 0)
+ if (PyFrame_FastToLocalsWithError(f) < 0) {
2861
+ Py_DECREF(from);
2862
goto error;
2863
+ }
2864
2865
locals = f->f_locals;
2866
if (locals == NULL) {
2867
PyErr_SetString(PyExc_SystemError,
2868
"no locals found during 'import *'");
2869
2870
2871
}
2872
err = import_all_from(locals, from);
0 commit comments