summaryrefslogtreecommitdiffstats
path: root/Objects/frameobject.c
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2021-08-10 07:56:14 (GMT)
committerGitHub <noreply@github.com>2021-08-10 07:56:14 (GMT)
commite9ec71ad2c7a1c83f03e172ba7c9f534912b8ba6 (patch)
tree514756da213bd602909a9d7d63e67979ca173653 /Objects/frameobject.c
parentd657da8155cc9611b901ea052f3eac28f99122b4 (diff)
downloadcpython-e9ec71ad2c7a1c83f03e172ba7c9f534912b8ba6.zip
cpython-e9ec71ad2c7a1c83f03e172ba7c9f534912b8ba6.tar.gz
cpython-e9ec71ad2c7a1c83f03e172ba7c9f534912b8ba6.tar.bz2
bpo-44872: use new trashcan macros in framobject.c (GH-27683) (GH-27690)
Diffstat (limited to 'Objects/frameobject.c')
-rw-r--r--Objects/frameobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index 034b908..aa97301 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -581,7 +581,7 @@ frame_dealloc(PyFrameObject *f)
_PyObject_GC_UNTRACK(f);
}
- Py_TRASHCAN_SAFE_BEGIN(f)
+ Py_TRASHCAN_BEGIN(f, frame_dealloc);
/* Kill all local variables */
PyObject **valuestack = f->f_valuestack;
for (PyObject **p = f->f_localsplus; p < valuestack; p++) {
@@ -621,7 +621,7 @@ frame_dealloc(PyFrameObject *f)
}
Py_DECREF(co);
- Py_TRASHCAN_SAFE_END(f)
+ Py_TRASHCAN_END;
}
static inline Py_ssize_t