bpo-44872: use new trashcan macros in framobject.c (#27683)

This commit is contained in:
Irit Katriel 2021-08-09 18:11:38 +01:00 committed by GitHub
parent b33186bc43
commit 7d14fdb03c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -0,0 +1 @@
Use new trashcan macros (Py_TRASHCAN_BEGIN/END) in frameobject.c instead of the old ones (Py_TRASHCAN_SAFE_BEGIN/END).

View file

@ -619,7 +619,7 @@ frame_dealloc(PyFrameObject *f)
_PyObject_GC_UNTRACK(f);
}
Py_TRASHCAN_SAFE_BEGIN(f)
Py_TRASHCAN_BEGIN(f, frame_dealloc);
PyCodeObject *co = NULL;
/* Kill all local variables including specials, if we own them */
@ -659,7 +659,7 @@ frame_dealloc(PyFrameObject *f)
}
Py_XDECREF(co);
Py_TRASHCAN_SAFE_END(f)
Py_TRASHCAN_END;
}
static int