Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MNT: more missing decrefs spotted in code review
  • Loading branch information
ngoldbaum committed Apr 16, 2024
commit 90c804911ffcb32aa233a33d80bd8510dd0b5c81
3 changes: 3 additions & 0 deletions numpy/_core/src/umath/umathmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ int initumath(PyObject *m)
return -1;
}
if (install_logical_ufunc_promoter(s) < 0) {
Py_DECREF(s);
return -1;
}
Py_DECREF(s);
Expand All @@ -318,6 +319,7 @@ int initumath(PyObject *m)
return -1;
}
if (install_logical_ufunc_promoter(s) < 0) {
Py_DECREF(s);
return -1;
}
Py_DECREF(s);
Expand All @@ -327,6 +329,7 @@ int initumath(PyObject *m)
return -1;
}
if (install_logical_ufunc_promoter(s) < 0) {
Py_DECREF(s);
return -1;
}
Py_DECREF(s);
Expand Down