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

Skip to content

BUG: Don't call INCREF/DECREF on descr in NpyStringAcquireAllocator (#31456)#31460

Merged
charris merged 1 commit into
numpy:maintenance/2.4.xfrom
charris:backport-31456
May 18, 2026
Merged

BUG: Don't call INCREF/DECREF on descr in NpyStringAcquireAllocator (#31456)#31460
charris merged 1 commit into
numpy:maintenance/2.4.xfrom
charris:backport-31456

Conversation

@charris
Copy link
Copy Markdown
Member

@charris charris commented May 18, 2026

Backport of #31456.

Remove incorrect calls of Py_INCREF(descr) and Py_DECREF(descr) in the RAII object NpyStringAcquireAllocator.

Closes gh-31415.

AI Disclosure

No AI tools used.

@charris charris added this to the 2.4.6 release milestone May 18, 2026
@charris charris added 00 - Bug 08 - Backport Used to tag backport PRs labels May 18, 2026
@charris charris merged commit 9778d26 into numpy:maintenance/2.4.x May 18, 2026
73 checks passed
@charris charris deleted the backport-31456 branch May 18, 2026 19:21
@charris charris changed the title BUG: core: Don't call INCREF/DECREF on descr in NpyStringAcquireAllocator. (#31456) BUG: core: Don't call INCREF/DECREF on descr in NpyStringAcquireAllocator (#31456) May 19, 2026
@charris charris changed the title BUG: core: Don't call INCREF/DECREF on descr in NpyStringAcquireAllocator (#31456) BUG: Don't call INCREF/DECREF on descr in NpyStringAcquireAllocator (#31456) May 19, 2026
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