use Py_CLEAR
This commit is contained in:
parent
fbc6f943e0
commit
496c53d83e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue