Skip to content

gh-153210: Fix array module import crash under a memory pressure#153238

Open
sobolevn wants to merge 1 commit into
python:mainfrom
sobolevn:issue-153210
Open

gh-153210: Fix array module import crash under a memory pressure#153238
sobolevn wants to merge 1 commit into
python:mainfrom
sobolevn:issue-153210

Conversation

@sobolevn

@sobolevn sobolevn commented Jul 6, 2026

Copy link
Copy Markdown
Member

Note that PyModule_AddObjectRef was not required, because if (PyModule_AddType(m, state->ArrayType) < 0) is used right after that overriding the module registation. Now it is only registered once.

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. 👍

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