summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Goldbaum <nathan.goldbaum@gmail.com>2023-03-02 13:09:58 -0700
committerNathan Goldbaum <nathan.goldbaum@gmail.com>2023-03-02 13:09:58 -0700
commitdc6852934b7a403e255b687b294607658d934f83 (patch)
tree6c70aa6fb9a547e18cff45e6f828d2fd85ddeff1
parent6a819d660afddaf3e9fba6de00f8f4d366813a5c (diff)
downloadnumpy-dc6852934b7a403e255b687b294607658d934f83.tar.gz
BUG: Fix reference counting error in arraydescr_new
-rw-r--r--numpy/core/src/multiarray/descriptor.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/descriptor.c b/numpy/core/src/multiarray/descriptor.c
index c4f37ee18..68d398d64 100644
--- a/numpy/core/src/multiarray/descriptor.c
+++ b/numpy/core/src/multiarray/descriptor.c
@@ -2447,7 +2447,6 @@ arraydescr_new(PyTypeObject *subtype,
PyErr_NoMemory();
return NULL;
}
- PyObject_Init((PyObject *)descr, subtype);
descr->f = &NPY_DT_SLOTS(DType)->f;
Py_XINCREF(DType->scalar_type);
descr->typeobj = DType->scalar_type;