summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher L. Farrow <cfarrow@enthought.com>2011-08-23 07:57:30 -0500
committerCharles Harris <charlesr.harris@gmail.com>2011-10-02 09:09:40 -0600
commit2e899dd23bc36ffad5590c8bc11de22d51a16966 (patch)
tree11759bac66a2a0d7819d75f5453933dbf907c3a9
parent8e606173b3436c641adc07b826866542e7ce5ff7 (diff)
downloadnumpy-2e899dd23bc36ffad5590c8bc11de22d51a16966.tar.gz
BUG: Fixing reference counting bug in array comparison
-rw-r--r--numpy/core/src/multiarray/arrayobject.c2
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;
}
/*