Skip to content

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

Merged
charris merged 2 commits intonumpy:maintenance/1.21.xfrom
charris:backport-19289
Jun 25, 2021
Merged

BUG: Fix reference count leak in ufunc dtype handling#19349
charris merged 2 commits intonumpy:maintenance/1.21.xfrom
charris:backport-19289

Conversation

@charris
Copy link
Copy Markdown
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...

seberg added 2 commits June 25, 2021 12:19
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.

2 participants