summaryrefslogtreecommitdiff
path: root/numpy/core/src/arrayobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/src/arrayobject.c')
-rw-r--r--numpy/core/src/arrayobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/src/arrayobject.c b/numpy/core/src/arrayobject.c
index a337aa176..cde69108e 100644
--- a/numpy/core/src/arrayobject.c
+++ b/numpy/core/src/arrayobject.c
@@ -10614,6 +10614,7 @@ arraydescr_dealloc(PyArray_Descr *self)
"an attempt was made to deallocate %d (%c) ***\n",
self->type_num, self->type);
Py_INCREF(self);
+ Py_INCREF(self);
return;
}
Py_XDECREF(self->typeobj);