8000 BUG: fix reference leak in PyArray_FromArrayAttr_int by ngoldbaum · Pull Request #25931 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: fix reference leak in PyArray_FromArrayAttr_int #25931

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

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

ngoldbaum
Copy link
Member

Caught by @mtsokol after #25922 was merged.

Copy link
Member
@mtsokol mtsokol left a comment

Choose a reason for hiding this comment

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

According to docs PyTuple_Pack, PyTuple_New, and PyDict_New create new references, so they should be Py_DECREFed.

@charris charris merged commit 54469e2 into numpy:main Mar 4, 2024
@charris
Copy link
Member
charris commented Mar 4, 2024

Thanks Nathan.

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
0