Issue #20437: Fixed 22 potential bugs when deleting objects references.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user