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 bc144f0 commit 0dadf56Copy full SHA for 0dadf56
Python/ceval.c
@@ -2832,13 +2832,16 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
2832
TARGET(IMPORT_STAR) {
2833
PyObject *from = POP(), *locals;
2834
int err;
2835
- if (PyFrame_FastToLocalsWithError(f) < 0)
+ if (PyFrame_FastToLocalsWithError(f) < 0) {
2836
+ Py_DECREF(from);
2837
goto error;
2838
+ }
2839
2840
locals = f->f_locals;
2841
if (locals == NULL) {
2842
PyErr_SetString(PyExc_SystemError,
2843
"no locals found during 'import *'");
2844
2845
2846
}
2847
READ_TIMESTAMP(intr0);
0 commit comments