mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
use Py_CLEAR
This commit is contained in:
parent
fbc6f943e0
commit
496c53d83e
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue