mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
Issue #20437: Fixed 22 potential bugs when deleting objects references.
This commit is contained in:
commit
dfe98a102e
15 changed files with 34 additions and 63 deletions
|
@ -430,8 +430,7 @@ trace_trampoline(PyObject *self, PyFrameObject *frame,
|
|||
result = call_trampoline(callback, frame, what, arg);
|
||||
if (result == NULL) {
|
||||
PyEval_SetTrace(NULL, NULL);
|
||||
Py_XDECREF(frame->f_trace);
|
||||
frame->f_trace = NULL;
|
||||
Py_CLEAR(frame->f_trace);
|
||||
return -1;
|
||||
}
|
||||
if (result != Py_None) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue