8000 MNT: replace _PyDict_GetItemStringWithError with PyDict_GetItemStringRef by ngoldbaum · Pull Request #26282 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

MNT: replace _PyDict_GetItemStringWithError with PyDict_GetItemStringRef #26282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Apr 17, 2024
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
0