Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions stringdtype/stringdtype/src/dtype.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,6 @@ stringdtype_new(PyTypeObject *NPY_UNUSED(cls), PyObject *args, PyObject *kwds)
static void
stringdtype_dealloc(StringDTypeObject *self)
{
// Need to deallocate all the memory allocated during setitem.

PyArrayDescr_Type.tp_dealloc((PyObject *)self);
}

Expand Down
2 changes: 2 additions & 0 deletions stringdtype/stringdtype/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ _memory_usage(PyObject *NPY_UNUSED(self), PyObject *obj)

} while (iternext(iter));

NpyIter_Deallocate(iter);

PyObject *ret = PyLong_FromSize_t(memory_usage);

return ret;
Expand Down