Skip to content

Commit f9ac4c5

Browse files
author
Erlend E. Aasland
committed
Address review: revert Py_CLEAR change in lru_list_elem_dealloc
1 parent 0c8df1f commit f9ac4c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_functoolsmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,8 +766,8 @@ static void
766766
lru_list_elem_dealloc(lru_list_elem *link)
767767
{
768768
PyTypeObject *tp = Py_TYPE(link);
769-
Py_CLEAR(link->key);
770-
Py_CLEAR(link->result);
769+
Py_XDECREF(link->key);
770+
Py_XDECREF(link->result);
771771
tp->tp_free(link);
772772
Py_DECREF(tp);
773773
}

0 commit comments

Comments
 (0)