]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-99537: Use Py_SETREF(var, NULL) in C code (#99687)
authorVictor Stinner <vstinner@python.org>
Wed, 23 Nov 2022 13:57:50 +0000 (14:57 +0100)
committerGitHub <noreply@github.com>
Wed, 23 Nov 2022 13:57:50 +0000 (14:57 +0100)
commit81f7359f67a7166d57a10a3d5366406d9c85f1de
treef72a35747fa77ab9c63ba70ef9e1620daddf0cc3
parent5d9183c7ad68eb9ddb53d54a3f9a27e29dbabf31
gh-99537: Use Py_SETREF(var, NULL) in C code (#99687)

Replace "Py_DECREF(var); var = NULL;" with "Py_SETREF(var, NULL);".
22 files changed:
Modules/_abc.c
Modules/_datetimemodule.c
Modules/_elementtree.c
Modules/_io/_iomodule.c
Modules/_pickle.c
Modules/_scproxy.c
Modules/_struct.c
Modules/_tkinter.c
Modules/_xxsubinterpretersmodule.c
Modules/_zoneinfo.c
Modules/cjkcodecs/multibytecodec.c
Modules/mathmodule.c
Modules/nismodule.c
Modules/posixmodule.c
Objects/abstract.c
Objects/classobject.c
Objects/descrobject.c
Objects/fileobject.c
Objects/typeobject.c
Python/bltinmodule.c
Python/errors.c
Python/marshal.c