8000 BUG: Add missing DECREF in new path by charris · Pull Request #19280 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: Add missing DECREF in new path #19280

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 2 commits into from
Jun 19, 2021
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
Next Next commit
BUG: Add missing DECREF in new path
Pretty, harmless reference count leak (the method is a singleton)
  • Loading branch information
seberg authored and charris committed Jun 19, 2021
commit fa5754e8c159a37fcd9345df261cf82821088ea0
1 change: 1 addition & 0 deletions numpy/core/src/multiarray/convert_datatype.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ PyArray_CheckCastSafety(NPY_CASTING casting,

if (PyArray_MinCastSafety(castingimpl->casting, casting) == casting) {
/* No need to check using `castingimpl.resolve_descriptors()` */
Py_DECREF(meth);
return 1;
}

Expand Down
0