Skip to content

BUG: Fix some leaks found via LeakSanitizer#30756

Merged
seberg merged 1 commit intonumpy:mainfrom
mayeut:fix-import-leak
Feb 1, 2026
Merged

BUG: Fix some leaks found via LeakSanitizer#30756
seberg merged 1 commit intonumpy:mainfrom
mayeut:fix-import-leak

Conversation

@mayeut
Copy link
Copy Markdown
Contributor

@mayeut mayeut commented Jan 31, 2026

The ref leak in PyUFunc_AddLoopFromSpec_int was the one reported when running python -c 'import numpy' with AddressSanitizer+LeakSanitizer enabled.
The other ones were found by searching for the same pattern.

@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Jan 31, 2026
Copy link
Copy Markdown
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, LGTM. (if anyone is curious, I always look at the valgrind output only for actual tests, which means init code isn't necessarily covered).

@seberg seberg merged commit a639fbf into numpy:main Feb 1, 2026
78 checks passed
@mayeut mayeut deleted the fix-import-leak branch February 1, 2026 18:24
charris pushed a commit to charris/numpy that referenced this pull request Feb 12, 2026
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Feb 12, 2026
charris added a commit that referenced this pull request Feb 12, 2026
BUG: Fix some leaks found via LeakSanitizer (#30756)
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