summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-07-18 16:52:28 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-07-18 16:52:28 +0000
commitbc0e889643645b39eae2a969d3e5629a1295f641 (patch)
treebc9283108c7923ba5dbfb5440194e45a87e43966
parentf1f0e0d81904c96c14fee21629f4fcd98fc5d6b4 (diff)
downloadnumpy-bc0e889643645b39eae2a969d3e5629a1295f641.tar.gz
Fixed order of DECREF and END_THREADS
-rw-r--r--numpy/core/src/multiarraymodule.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/numpy/core/src/multiarraymodule.c b/numpy/core/src/multiarraymodule.c
index 1c56329c5..1d587534e 100644
--- a/numpy/core/src/multiarraymodule.c
+++ b/numpy/core/src/multiarraymodule.c
@@ -3112,10 +3112,9 @@ PyArray_ArgMax(PyArrayObject *op, int axis)
arg_func(ip, m, rptr, ap);
rptr += 1;
}
- Py_DECREF(ap);
NPY_END_THREADS_DESCR(ap->descr)
-
+ Py_DECREF(ap);
return (PyObject *)rp;
fail: