summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2016-11-23 17:39:50 +0200
committerMatti Picus <matti.picus@gmail.com>2016-11-23 17:39:50 +0200
commit2a8bb91a18f1ceb50a2caee5acf96f8120ed265e (patch)
tree296d2d5e64f94df799f280392ec4d1198234e0dc
parent3bd79ab568856678139fa4d7ca272e7cbd05e1ad (diff)
downloadnumpy-2a8bb91a18f1ceb50a2caee5acf96f8120ed265e.tar.gz
BUG: in PyArg_ParseTupleAndKeywords, O passes the PyObject through with no INCREF
-rw-r--r--numpy/core/src/umath/ufunc_object.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c
index 52f11ee7a..62024d2e3 100644
--- a/numpy/core/src/umath/ufunc_object.c
+++ b/numpy/core/src/umath/ufunc_object.c
@@ -3906,7 +3906,6 @@ PyUFunc_GenericReduction(PyUFuncObject *ufunc, PyObject *args,
}
/* Until removed outright by https://github.com/numpy/numpy/pull/8187 */
if (bad_keepdimarg != NULL) {
- Py_DECREF(bad_keepdimarg);
if (DEPRECATE_FUTUREWARNING(
"keepdims argument has no effect on accumulate, and will be "
"removed in future") < 0) {