diff options
author | Mad Physicist <madphysicist@users.noreply.github.com> | 2016-02-22 13:18:09 -0500 |
---|---|---|
committer | Mad Physicist <madphysicist@users.noreply.github.com> | 2016-02-22 13:18:09 -0500 |
commit | 8e7d2dfeaf5464e6d970ae507284831505ebb16c (patch) | |
tree | 4089bdfd36b88cbfe9d1339f30064ad0c18bba9a | |
parent | fa3cde1b44182297663c69daa41abb576218a2ab (diff) | |
download | numpy-8e7d2dfeaf5464e6d970ae507284831505ebb16c.tar.gz |
BUG: Incrementing the wrong reference on return
-rw-r--r-- | numpy/core/src/umath/funcs.inc.src | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/umath/funcs.inc.src b/numpy/core/src/umath/funcs.inc.src index f0fa3e9dd..9887120f5 100644 --- a/numpy/core/src/umath/funcs.inc.src +++ b/numpy/core/src/umath/funcs.inc.src @@ -89,7 +89,7 @@ npy_ObjectLogicalOr(PyObject *i1, PyObject *i2) return i2; } else if (i2 == NULL) { - Py_INCREF(i2); + Py_INCREF(i1); return i1; } else { |