mirror of
https://github.com/python/cpython.git
synced 2025-10-04 06:06:44 +00:00
Fix two crashers (borrowed_ref_[34].py from the trunk).
This commit is contained in:
parent
2529aa9840
commit
e105f98046
2 changed files with 11 additions and 2 deletions
|
@ -2036,6 +2036,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
|
|||
"__import__ not found");
|
||||
break;
|
||||
}
|
||||
Py_INCREF(x);
|
||||
v = POP();
|
||||
u = TOP();
|
||||
if (PyInt_AsLong(u) != -1 || PyErr_Occurred())
|
||||
|
@ -2057,11 +2058,14 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
|
|||
Py_DECREF(u);
|
||||
if (w == NULL) {
|
||||
u = POP();
|
||||
Py_DECREF(x);
|
||||
x = NULL;
|
||||
break;
|
||||
}
|
||||
READ_TIMESTAMP(intr0);
|
||||
x = PyEval_CallObject(x, w);
|
||||
v = x;
|
||||
x = PyEval_CallObject(v, w);
|
||||
Py_DECREF(v);
|
||||
READ_TIMESTAMP(intr1);
|
||||
Py_DECREF(w);
|
||||
SET_TOP(x);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue