| 5712 | |
| 5713 | |
| 5714 | static void |
| 5715 | ufunc_dealloc(PyUFuncObject *ufunc) |
| 5716 | { |
| 5717 | PyObject_GC_UnTrack((PyObject *)ufunc); |
| 5718 | PyArray_free(ufunc->core_num_dims); |
| 5719 | PyArray_free(ufunc->core_dim_ixs); |
| 5720 | PyArray_free(ufunc->core_dim_sizes); |
| 5721 | PyArray_free(ufunc->core_dim_flags); |
| 5722 | PyArray_free(ufunc->core_offsets); |
| 5723 | PyArray_free(ufunc->core_signature); |
| 5724 | PyArray_free(ufunc->ptr); |
| 5725 | PyArray_free(ufunc->op_flags); |
| 5726 | Py_XDECREF(ufunc->userloops); |
| 5727 | if (ufunc->identity == PyUFunc_IdentityValue) { |
| 5728 | Py_DECREF(ufunc->identity_value); |
| 5729 | } |
| 5730 | Py_XDECREF(ufunc->obj); |
| 5731 | Py_XDECREF(ufunc->_loops); |
| 5732 | if (ufunc->_dispatch_cache != NULL) { |
| 5733 | PyArrayIdentityHash_Dealloc(ufunc->_dispatch_cache); |
| 5734 | } |
| 5735 | PyObject_GC_Del(ufunc); |
| 5736 | } |
| 5737 | |
| 5738 | static PyObject * |
| 5739 | ufunc_repr(PyUFuncObject *ufunc) |
nothing calls this directly
no test coverage detected