commit | edf17d8798e65c10c970ef86f7374f6c1b51027a | [log] [tgz] |
---|---|---|
author | Thomas Wouters <thomas@python.org> | Sat Apr 15 17:28:34 2006 +0000 |
committer | Thomas Wouters <thomas@python.org> | Sat Apr 15 17:28:34 2006 +0000 |
tree | 743ac540a38640d5b550c9b9636ca8ee5f86a0dd | |
parent | ed8f78312654d74329892252d720d78765495c38 [diff] [blame] |
Use Py_CLEAR instead of in-place DECREF/XDECREF or custom macros, for tp_clear methods.
diff --git a/Python/traceback.c b/Python/traceback.c index 567f23d..cdbec2b 100644 --- a/Python/traceback.c +++ b/Python/traceback.c
@@ -53,10 +53,8 @@ static void tb_clear(PyTracebackObject *tb) { - Py_XDECREF(tb->tb_next); - Py_XDECREF(tb->tb_frame); - tb->tb_next = NULL; - tb->tb_frame = NULL; + Py_CLEAR(tb->tb_next); + Py_CLEAR(tb->tb_frame); } PyTypeObject PyTraceBack_Type = {