Skip to content

BUG: Fix reference leaks and NULL pointer dereferences#30908

Merged
seberg merged 3 commits intonumpy:mainfrom
eendebakpt:fix_reference_leaks
Mar 2, 2026
Merged

BUG: Fix reference leaks and NULL pointer dereferences#30908
seberg merged 3 commits intonumpy:mainfrom
eendebakpt:fix_reference_leaks

Conversation

@eendebakpt
Copy link
Copy Markdown
Contributor

The PR addresses some reference leaks and NULL pointer dereferences in uncommon paths (mostly failures due to out-of-memory).

The issues addressed have been found using Claude.

@jorenham
Copy link
Copy Markdown
Member

jorenham commented Mar 1, 2026

there's an accidental submodule update

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, changes look all fine. Hard to cover mostly since most indeed can't fail in practice.
(Except maybe that one dtype refcount leak, but unless we do something like pytest-leaks it's just whack-a-mole.)

@seberg seberg merged commit dd102ad into numpy:main Mar 2, 2026
79 checks passed
@charris charris added the 09 - Backport-Candidate PRs tagged should be backported label Mar 2, 2026
charris pushed a commit to charris/numpy that referenced this pull request Mar 4, 2026
The PR addresses some reference leaks and NULL pointer dereferences in uncommon paths (mostly failures due to out-of-memory).

The issues addressed have been found using Claude.
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Mar 4, 2026
charris added a commit that referenced this pull request Mar 4, 2026
BUG: Fix reference leaks and NULL pointer dereferences (#30908)
sabasiddique1 pushed a commit to sabasiddique1/numpy that referenced this pull request Mar 4, 2026
The PR addresses some reference leaks and NULL pointer dereferences in uncommon paths (mostly failures due to out-of-memory).

The issues addressed have been found using Claude.
@eendebakpt eendebakpt deleted the fix_reference_leaks branch March 11, 2026 22:07
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.

4 participants