| 1801 | } |
| 1802 | |
| 1803 | static void neighiter_dealloc(PyArrayNeighborhoodIterObject* iter) |
| 1804 | { |
| 1805 | if (iter->mode == NPY_NEIGHBORHOOD_ITER_CONSTANT_PADDING) { |
| 1806 | if (PyArray_ISOBJECT(iter->_internal_iter->ao)) { |
| 1807 | Py_DECREF(*(PyObject**)iter->constant); |
| 1808 | } |
| 1809 | } |
| 1810 | PyDataMem_FREE(iter->constant); |
| 1811 | Py_DECREF(iter->_internal_iter); |
| 1812 | |
| 1813 | array_iter_base_dealloc((PyArrayIterObject*)iter); |
| 1814 | PyArray_free((PyArrayObject*)iter); |
| 1815 | } |
| 1816 | |
| 1817 | NPY_NO_EXPORT PyTypeObject PyArrayNeighborhoodIter_Type = { |
| 1818 | PyVarObject_HEAD_INIT(NULL, 0) |
nothing calls this directly
no test coverage detected