2626#include "pycore_pyerrors.h" // _PyErr_GetRaisedException()
2727#include "pycore_pystate.h" // _PyInterpreterState_GET()
2828#include "pycore_range.h" // _PyRangeIterObject
29+ #include "pycore_long.h" // void _PyLong_Free(PyLongObject *op);
2930#include "pycore_setobject.h" // _PySet_NextEntry()
3031#include "pycore_sliceobject.h" // _PyBuildSlice_ConsumeRefs
3132#include "pycore_tuple.h" // _PyTuple_ITEMS()
@@ -514,8 +515,8 @@ dummy_func(
514515
515516 STAT_INC (BINARY_OP , hit );
516517 PyObject * res_o = _PyLong_Multiply ((PyLongObject * )left_o , (PyLongObject * )right_o );
517- PyStackRef_CLOSE_SPECIALIZED (right , (destructor )PyObject_Free );
518- PyStackRef_CLOSE_SPECIALIZED (left , (destructor )PyObject_Free );
518+ PyStackRef_CLOSE_SPECIALIZED (right , (destructor )_PyLong_Free );
519+ PyStackRef_CLOSE_SPECIALIZED (left , (destructor )_PyLong_Free );
519520 INPUTS_DEAD ();
520521 ERROR_IF (res_o == NULL , error );
521522 res = PyStackRef_FromPyObjectSteal (res_o );
@@ -527,8 +528,8 @@ dummy_func(
527528
528529 STAT_INC (BINARY_OP , hit );
529530 PyObject * res_o = _PyLong_Add ((PyLongObject * )left_o , (PyLongObject * )right_o );
530- PyStackRef_CLOSE_SPECIALIZED (right , (destructor )PyObject_Free );
531- PyStackRef_CLOSE_SPECIALIZED (left , (destructor )PyObject_Free );
531+ PyStackRef_CLOSE_SPECIALIZED (right , (destructor )_PyLong_Free );
532+ PyStackRef_CLOSE_SPECIALIZED (left , (destructor )_PyLong_Free );
532533 INPUTS_DEAD ();
533534 ERROR_IF (res_o == NULL , error );
534535 res = PyStackRef_FromPyObjectSteal (res_o );
@@ -540,8 +541,8 @@ dummy_func(
540541
541542 STAT_INC (BINARY_OP , hit );
542543 PyObject * res_o = _PyLong_Subtract ((PyLongObject * )left_o , (PyLongObject * )right_o );
543- PyStackRef_CLOSE_SPECIALIZED (right , (destructor )PyObject_Free );
544- PyStackRef_CLOSE_SPECIALIZED (left , (destructor )PyObject_Free );
544+ PyStackRef_CLOSE_SPECIALIZED (right , (destructor )_PyLong_Free );
545+ PyStackRef_CLOSE_SPECIALIZED (left , (destructor )_PyLong_Free );
545546 INPUTS_DEAD ();
546547 ERROR_IF (res_o == NULL , error );
547548 res = PyStackRef_FromPyObjectSteal (res_o );
@@ -797,7 +798,7 @@ dummy_func(
797798 PyObject * res_o = PyList_GET_ITEM (list , index );
798799 assert (res_o != NULL );
799800 Py_INCREF (res_o );
800- PyStackRef_CLOSE_SPECIALIZED (sub_st , (destructor )PyObject_Free );
801+ PyStackRef_CLOSE_SPECIALIZED (sub_st , (destructor )_PyLong_Free );
801802 DEAD (sub_st );
802803 PyStackRef_CLOSE (list_st );
803804 res = PyStackRef_FromPyObjectSteal (res_o );
@@ -817,7 +818,7 @@ dummy_func(
817818 DEOPT_IF (Py_ARRAY_LENGTH (_Py_SINGLETON (strings ).ascii ) <= c );
818819 STAT_INC (BINARY_SUBSCR , hit );
819820 PyObject * res_o = (PyObject * )& _Py_SINGLETON (strings ).ascii [c ];
820- PyStackRef_CLOSE_SPECIALIZED (sub_st , (destructor )PyObject_Free );
821+ PyStackRef_CLOSE_SPECIALIZED (sub_st , (destructor )_PyLong_Free );
821822 DEAD (sub_st );
822823 PyStackRef_CLOSE (str_st );
823824 res = PyStackRef_FromPyObjectSteal (res_o );
@@ -838,7 +839,7 @@ dummy_func(
838839 PyObject * res_o = PyTuple_GET_ITEM (tuple , index );
839840 assert (res_o != NULL );
840841 Py_INCREF (res_o );
841- PyStackRef_CLOSE_SPECIALIZED (sub_st , (destructor )PyObject_Free );
842+ PyStackRef_CLOSE_SPECIALIZED (sub_st , (destructor )_PyLong_Free );
842843 DEAD (sub_st );
843844 PyStackRef_CLOSE (tuple_st );
844845 res = PyStackRef_FromPyObjectSteal (res_o );
@@ -950,7 +951,7 @@ dummy_func(
950951 PyList_SET_ITEM (list , index , PyStackRef_AsPyObjectSteal (value ));
951952 assert (old_value != NULL );
952953 Py_DECREF (old_value );
953- PyStackRef_CLOSE_SPECIALIZED (sub_st , (destructor )PyObject_Free );
954+ PyStackRef_CLOSE_SPECIALIZED (sub_st , (destructor )_PyLong_Free );
954955 DEAD (sub_st );
955956 PyStackRef_CLOSE (list_st );
956957 }
0 commit comments