Skip to content

Commit d80bce0

Browse files
authored
Merge pull request numpy#26686 from charris/fix-lost-comment
MAINT: Add comment lost in previous PR.
2 parents aa73a7c + 90f952a commit d80bce0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

numpy/_core/src/multiarray/descriptor.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2038,6 +2038,7 @@ arraydescr_dealloc(PyArray_Descr *self)
20382038
{
20392039
Py_XDECREF(self->typeobj);
20402040
if (!PyDataType_ISLEGACY(self)) {
2041+
/* non legacy dtypes must not have fields, etc. */
20412042
Py_TYPE(self)->tp_free((PyObject *)self);
20422043
return;
20432044
}

0 commit comments

Comments
 (0)