Skip to content

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