mirror of
https://github.com/python/cpython.git
synced 2025-09-05 00:11:10 +00:00
merge
This commit is contained in:
commit
3fa28fd075
1 changed files with 3 additions and 1 deletions
|
@ -3146,8 +3146,10 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
|
||||||
if (enter == NULL)
|
if (enter == NULL)
|
||||||
goto error;
|
goto error;
|
||||||
exit = special_lookup(mgr, &PyId___exit__);
|
exit = special_lookup(mgr, &PyId___exit__);
|
||||||
if (exit == NULL)
|
if (exit == NULL) {
|
||||||
|
Py_DECREF(enter);
|
||||||
goto error;
|
goto error;
|
||||||
|
}
|
||||||
SET_TOP(exit);
|
SET_TOP(exit);
|
||||||
Py_DECREF(mgr);
|
Py_DECREF(mgr);
|
||||||
res = PyObject_CallFunctionObjArgs(enter, NULL);
|
res = PyObject_CallFunctionObjArgs(enter, NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue