summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Droettboom <mdboom@gmail.com>2011-05-02 10:18:07 -0400
committerMark Wiebe <mwwiebe@gmail.com>2011-05-02 11:43:56 -0700
commit26c957b0d7040e8a74ceb8d597de40f55d521aa8 (patch)
tree7300213b32d2cf6e6d0d79da20abf34fc7d7fefc
parent279764727e53c8f72143313743f5e49fb8d29308 (diff)
downloadnumpy-26c957b0d7040e8a74ceb8d597de40f55d521aa8.tar.gz
BUG: Fix reference counting leaks in C-based multiarray_tests
-rw-r--r--numpy/core/src/multiarray/multiarray_tests.c.src3
1 files changed, 0 insertions, 3 deletions
diff --git a/numpy/core/src/multiarray/multiarray_tests.c.src b/numpy/core/src/multiarray/multiarray_tests.c.src
index f99cb98ad..d6340025c 100644
--- a/numpy/core/src/multiarray/multiarray_tests.c.src
+++ b/numpy/core/src/multiarray/multiarray_tests.c.src
@@ -44,7 +44,6 @@ static int copy_@type@(PyArrayIterObject *itx, PyArrayNeighborhoodIterObject *ni
ptr += 1;
}
- Py_INCREF(aout);
PyList_Append(*out, (PyObject*)aout);
Py_DECREF(aout);
PyArray_ITER_NEXT(itx);
@@ -84,7 +83,6 @@ static int copy_object(PyArrayIterObject *itx, PyArrayNeighborhoodIterObject *ni
PyArrayNeighborhoodIter_Next(niterx);
}
- Py_INCREF(aout);
PyList_Append(*out, (PyObject*)aout);
Py_DECREF(aout);
PyArray_ITER_NEXT(itx);
@@ -238,7 +236,6 @@ copy_double_double(PyArrayNeighborhoodIterObject *itx,
ptr += 1;
PyArrayNeighborhoodIter_Next(niterx);
}
- Py_INCREF(aout);
PyList_Append(*out, (PyObject*)aout);
Py_DECREF(aout);
PyArrayNeighborhoodIter_Next(itx);