commit | 32c49d95330870bfb8c0403eabb46b6434dcea39 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sun Feb 19 01:11:56 2012 -0500 |
committer | Benjamin Peterson <benjamin@python.org> | Sun Feb 19 01:11:56 2012 -0500 |
tree | 9e01a92e92065df324dfa6df9dc0edd9917b6ba8 | |
parent | f5f6af81ac676e31ad11f0b943c4449b62fc1501 [diff] |
use Py_CLEAR
diff --git a/Objects/funcobject.c b/Objects/funcobject.c index ad0f427..51b6c9d 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c
@@ -784,9 +784,7 @@ static int sm_clear(staticmethod *sm) { - Py_XDECREF(sm->sm_callable); - sm->sm_callable = NULL; - + Py_CLEAR(sm->sm_callable); return 0; }