Skip to content

BUG: fix reference counting inconsistency - #32682

Merged
mattip merged 1 commit into
numpy:mainfrom
ngoldbaum:fix-crash-32531
Sep 17, 2026
Merged

mattip merged 1 commit into
numpy:mainfrom
ngoldbaum:fix-crash-32531

Conversation

@ngoldbaum

Copy link
Copy Markdown
Member

PR summary

I merged #32531 without merging with main first. In the intervening time there was a code change in npy_update_operand_if_pyscalar that broke #32531. This removes an incref/decref pair that is no longer necessary post #32531.

AI Disclosure

An AI found the site where the incref/decref needed to be deleted.

@ikrommyd ikrommyd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for catching this. I legit thought the PRs had broken CI without looking.

@mattip
mattip merged commit 63c5826 into numpy:main Sep 17, 2026
92 checks passed
@mattip

mattip commented Sep 17, 2026

Copy link
Copy Markdown
Member

Ci is good, so merging. Thanks @ngoldbaum

eendebakpt added a commit to eendebakpt/numpy that referenced this pull request Sep 21, 2026
Resolve a conflict with main: the previous merge picked up numpygh-32531 without its crash fix numpygh-32682.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants