Skip to content

BUG: Fix extra decref of PyArray_UInt8DType.#27478

Merged
seberg merged 1 commit intonumpy:mainfrom
hawkinsp:decref
Sep 30, 2024
Merged

BUG: Fix extra decref of PyArray_UInt8DType.#27478
seberg merged 1 commit intonumpy:mainfrom
hawkinsp:decref

Conversation

@hawkinsp
Copy link
Contributor

@hawkinsp hawkinsp commented Sep 30, 2024

We didn't take a reference to this type, so we shouldn't be freeing one. This appears to have been missed by PR #25329.

This was found to cause segfaults when running Google-internal tests under NumPy 2.1.

@ngoldbaum

We didn't take a reference to this type, so we shouldn't be freeing one.
This appears to have been missed by PR numpy#25329.
@seberg seberg added the 09 - Backport-Candidate PRs tagged should be backported label Sep 30, 2024
@seberg
Copy link
Member

seberg commented Sep 30, 2024

Thanks @hawkinsp, nice find.

@seberg seberg merged commit b9ba526 into numpy:main Sep 30, 2024
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Sep 30, 2024
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