mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
use Py_CLEAR
This commit is contained in:
parent
f5f6af81ac
commit
32c49d9533
1 changed files with 1 additions and 3 deletions
|
@ -784,9 +784,7 @@ sm_traverse(staticmethod *sm, visitproc visit, void *arg)
|
||||||
static int
|
static int
|
||||||
sm_clear(staticmethod *sm)
|
sm_clear(staticmethod *sm)
|
||||||
{
|
{
|
||||||
Py_XDECREF(sm->sm_callable);
|
Py_CLEAR(sm->sm_callable);
|
||||||
sm->sm_callable = NULL;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue