8000 Merge pull request #7308 from madphysicist/madphysicist-pyref-bug · numpy/numpy@4b78b90 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4b78b90

Browse files
committed
Merge pull request #7308 from madphysicist/madphysicist-pyref-bug
BUG: Incrementing the wrong reference on return
2 parents da2ad32 + 8e7d2df commit 4b78b90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/core/src/umath/funcs.inc.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ npy_ObjectLogicalOr(PyObject *i1, PyObject *i2)
8989
return i2;
9090
}
9191
else if (i2 == NULL) {
92-
Py_INCREF(i2);
92+
Py_INCREF(i1);
9393
return i1;
9494
}
9595
else {

0 commit comments

Comments
 (0)
0