summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorChristopher L. Farrow <cfarrow@enthought.com>2011-08-04 17:14:21 -0500
committerCharles Harris <charlesr.harris@gmail.com>2011-10-02 09:09:39 -0600
commit7471adc81aa9312d80ce62bee4485221682d12ef (patch)
treeccc119140bf8393166aa294e1526c81153e939bd /numpy
parent3927c3aa28ea2ed8dbb5228de3e69928972da412 (diff)
downloadnumpy-7471adc81aa9312d80ce62bee4485221682d12ef.tar.gz
BUG: porting bugfix from refactor @ 708d6be
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/multiarray/iterators.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/src/multiarray/iterators.c b/numpy/core/src/multiarray/iterators.c
index 5057bf88f..711e66795 100644
--- a/numpy/core/src/multiarray/iterators.c
+++ b/numpy/core/src/multiarray/iterators.c
@@ -1706,6 +1706,7 @@ arraymultiter_next(PyArrayMultiIterObject *multi)
multi->index++;
return ret;
}
+ Py_DECREF(ret);
return NULL;
}