diff options
-rw-r--r-- | numpy/core/src/multiarray/arrayobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/arrayobject.c b/numpy/core/src/multiarray/arrayobject.c index 145daa845..5ca5d22f0 100644 --- a/numpy/core/src/multiarray/arrayobject.c +++ b/numpy/core/src/multiarray/arrayobject.c @@ -1272,8 +1272,8 @@ array_richcompare(PyArrayObject *self, PyObject *other, int cmp_op) if (_res) { Py_DECREF(result); result = _void_compare(self, array_other, cmp_op); - Py_DECREF(array_other); } + Py_DECREF(array_other); return result; } /* |