diff options
-rw-r--r-- | numpy/core/src/umath/ufunc_object.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c index 37e297ed5..e99d2614a 100644 --- a/numpy/core/src/umath/ufunc_object.c +++ b/numpy/core/src/umath/ufunc_object.c @@ -4054,6 +4054,7 @@ PyUFunc_GenericReduction(PyUFuncObject *ufunc, } Py_INCREF(dtype->singleton); otype = dtype->singleton; + Py_DECREF(dtype); } if (out_obj && !PyArray_OutputConverter(out_obj, &out)) { goto fail; |