summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/src/umath/reduction.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/numpy/core/src/umath/reduction.c b/numpy/core/src/umath/reduction.c
index b2b4db012..79adb0051 100644
--- a/numpy/core/src/umath/reduction.c
+++ b/numpy/core/src/umath/reduction.c
@@ -198,7 +198,6 @@ conform_reduce_result(PyArrayObject *in, const npy_bool *axis_flags,
}
if (PyArray_SetWritebackIfCopyBase(ret_copy, (PyArrayObject *)ret) < 0) {
- Py_DECREF(ret);
Py_DECREF(ret_copy);
return NULL;
}