diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-02-19 01:11:56 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-02-19 01:11:56 -0500 |
commit | 32c49d95330870bfb8c0403eabb46b6434dcea39 (patch) | |
tree | 9e01a92e92065df324dfa6df9dc0edd9917b6ba8 /Objects/funcobject.c | |
parent | f5f6af81ac676e31ad11f0b943c4449b62fc1501 (diff) | |
download | cpython-git-32c49d95330870bfb8c0403eabb46b6434dcea39.tar.gz |
use Py_CLEAR
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r-- | Objects/funcobject.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c index ad0f427f59..51b6c9d4bd 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -784,9 +784,7 @@ sm_traverse(staticmethod *sm, visitproc visit, void *arg) static int sm_clear(staticmethod *sm) { - Py_XDECREF(sm->sm_callable); - sm->sm_callable = NULL; - + Py_CLEAR(sm->sm_callable); return 0; } |