Skip to content

Commit 812856b

Browse files
committed
fix bug in clear
1 parent 5c56b64 commit 812856b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_operator.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,16 +1671,16 @@ methodcaller_clear(methodcallerobject *mc)
16711671
if (mc->vectorcall_args != NULL) {
16721672
PyMem_Free(mc->vectorcall_args);
16731673
mc->vectorcall_args = 0;
1674+
Py_CLEAR(mc->vectorcall_kwnames);
16741675
}
1675-
Py_CLEAR(mc->vectorcall_kwnames);
16761676
}
16771677

16781678
static void
16791679
methodcaller_dealloc(methodcallerobject *mc)
16801680
{
16811681
PyTypeObject *tp = Py_TYPE(mc);
16821682
PyObject_GC_UnTrack(mc);
1683-
(void)methodcaller_clear(mc);
1683+
methodcaller_clear(mc);
16841684
tp->tp_free(mc);
16851685
Py_DECREF(tp);
16861686
}

0 commit comments

Comments
 (0)