Skip to content

Commit 7d14fdb

Browse files
authored
bpo-44872: use new trashcan macros in framobject.c (#27683)
1 parent b33186b commit 7d14fdb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Use new trashcan macros (Py_TRASHCAN_BEGIN/END) in frameobject.c instead of the old ones (Py_TRASHCAN_SAFE_BEGIN/END).

Objects/frameobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ frame_dealloc(PyFrameObject *f)
619619
_PyObject_GC_UNTRACK(f);
620620
}
621621

622-
Py_TRASHCAN_SAFE_BEGIN(f)
622+
Py_TRASHCAN_BEGIN(f, frame_dealloc);
623623
PyCodeObject *co = NULL;
624624

625625
/* Kill all local variables including specials, if we own them */
@@ -659,7 +659,7 @@ frame_dealloc(PyFrameObject *f)
659659
}
660660

661661
Py_XDECREF(co);
662-
Py_TRASHCAN_SAFE_END(f)
662+
Py_TRASHCAN_END;
663663
}
664664

665665
static int

0 commit comments

Comments
 (0)