diff options
author | Christopher L. Farrow <cfarrow@enthought.com> | 2011-08-23 07:57:30 -0500 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-10-02 09:09:40 -0600 |
commit | 2e899dd23bc36ffad5590c8bc11de22d51a16966 (patch) | |
tree | 11759bac66a2a0d7819d75f5453933dbf907c3a9 | |
parent | 8e606173b3436c641adc07b826866542e7ce5ff7 (diff) | |
download | numpy-2e899dd23bc36ffad5590c8bc11de22d51a16966.tar.gz |
BUG: Fixing reference counting bug in array comparison
-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; } /* |