Skip to content
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

BUG: Fix reference count leak in ufunc dtype handling #19349

Merged
merged 2 commits into from Jun 25, 2021

Conversation

charris
Copy link
Member

@charris charris commented Jun 25, 2021

Backport of #19289.

This adds a missing decref to the signature/dtype keyword argument
logic in reductions.
(The code will change quite a bit after 1.21, but this avoids a
reference count leak on 1.21.)

EDIT: It may take until tonight for me to know whether there is much (or anything) more coming...

This adds a missing decref to the signature/dtype keyword argument
logic in reductions.
(The code will change quite a bit after 1.21, but this avoids a
reference count leak on 1.21.)
`ensure_dtype_nbo()` already increments the reference count,
so the INCREF is not necessary here.
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels Jun 25, 2021
@charris charris added this to the 1.21.1 release milestone Jun 25, 2021
@charris charris merged commit ff9f9aa into numpy:maintenance/1.21.x Jun 25, 2021
@charris charris deleted the backport-19289 branch June 25, 2021 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
00 - Bug 08 - Backport Used to tag backport PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants