diff options
-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 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; } |