Skip to content
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

numpy: fix refcount leak to dtype singleton #1860

Merged
merged 1 commit into from
Jul 27, 2019
Merged

Conversation

pv
Copy link
Contributor

@pv pv commented Jul 26, 2019

PyArray_DescrFromType returns a new reference, not borrowed one,
so handle it accordingly.

Closes #1858

PyArray_DescrFromType returns a new reference, not borrowed one
@wjakob wjakob merged commit c9d32a8 into pybind:master Jul 27, 2019
@wjakob
Copy link
Member

wjakob commented Jul 27, 2019

Great, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pybind11::array argument leaks reference count of dtype singleton
2 participants