mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +00:00
Issue #20437: Fixed 21 potential bugs when deleting objects references.
This commit is contained in:
parent
e9c31470e1
commit
505ff755d7
16 changed files with 34 additions and 63 deletions
|
@ -395,8 +395,7 @@ trace_trampoline(PyObject *self, PyFrameObject *frame,
|
|||
result = call_trampoline(tstate, 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