commit | 496c53d83e736c54d3790c61b0d389df286c0a27 | [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 | afcb3822ead57a48658b24cb88753c99b3496d0a | |
parent | fbc6f943e011397a8523617babc4a438b4df6bb6 [diff] [blame] |
use Py_CLEAR
diff --git a/Objects/funcobject.c b/Objects/funcobject.c index 45f9f57..2292a9e 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c
@@ -889,9 +889,7 @@ static int sm_clear(staticmethod *sm) { - Py_XDECREF(sm->sm_callable); - sm->sm_callable = NULL; - + Py_CLEAR(sm->sm_callable); return 0; }