gh-99537: Use Py_CLEAR() function in C code (#99686)
Replace "Py_XDECREF(var); var = NULL;" with "Py_CLEAR(var);". Don't replace "Py_DECREF(var); var = NULL;" with "Py_CLEAR(var);". It would add an useless "if (var)" test in code path where var cannot be NULL.
V
Victor Stinner committed
9a91182d4a87e4511dad20ad101e3eab0e1c5088
Parent: 7e3f09c
Committed by GitHub <noreply@github.com>
on 11/22/2022, 2:22:55 PM