Skip to content

BUG: fix refcount leak in PyArray_AdaptFlexibleDType #11987

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 2 commits into from
Sep 19, 2018

Conversation

charris
Copy link
Member

@charris charris commented Sep 19, 2018

Backport of #11967.

Fixes #11951. Variable were initialized but never decrefed. I am not sure how to write a test since they are new instances that never escape out of the local function, so sys.get_refcount cannot see them. Do they somehow show up in the gc module on CPython?

@charris charris added this to the 1.14.6 release milestone Sep 19, 2018
@charris charris merged commit 514eeb4 into numpy:maintenance/1.14.x Sep 19, 2018
@charris charris deleted the backport-11967 branch September 19, 2018 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants