Thanks to visit codestin.com
Credit goes to github.com

Skip to content

BUG: Fix memory leak in function npyiter_multi_index_set #19403

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
Jul 9, 2021

Conversation

theoniko
Copy link
Contributor

@theoniko theoniko commented Jul 3, 2021

Fixes #19376

@theoniko theoniko force-pushed the theoniko-memory-leak branch from d7cf6cd to 9004783 Compare July 8, 2021 05:30
Copy link
Member

@seberg seberg left a comment

Choose a reason for hiding this comment

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

Thanks! A test to cover this could be nice, but happy to put it in even without (and may just do). This is clearly right.

This whole chunk could probably be simplified a bit, e.g. using PyNumber_AsSsize_t directly, but there are probably bigger fish to fry...

@mattip mattip merged commit b32b72e into numpy:main Jul 9, 2021
@mattip
Copy link
Member

mattip commented Jul 9, 2021

Thanks @theoniko

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.

Memory leak in function is_scalar_with_conversion (a static analysis report with a POC)
3 participants