summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-02-19 06:11:56 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-02-19 06:11:56 (GMT)
commit496c53d83e736c54d3790c61b0d389df286c0a27 (patch)
treeafcb3822ead57a48658b24cb88753c99b3496d0a /Objects
parentfbc6f943e011397a8523617babc4a438b4df6bb6 (diff)
downloadcpython-496c53d83e736c54d3790c61b0d389df286c0a27.zip
cpython-496c53d83e736c54d3790c61b0d389df286c0a27.tar.gz
cpython-496c53d83e736c54d3790c61b0d389df286c0a27.tar.bz2
use Py_CLEAR
Diffstat (limited to 'Objects')
-rw-r--r--Objects/funcobject.c4
1 files changed, 1 insertions, 3 deletions
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 @@ 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;
}