Commit 496c53d8 authored by Benjamin Peterson's avatar Benjamin Peterson

use Py_CLEAR

parent fbc6f943
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment