Skip to content

gh-150988: Fix refleak in OSError when attrs are set before super().__init__#150990

Open
lgeiger wants to merge 4 commits into
python:mainfrom
lgeiger:refleak-oserror
Open

gh-150988: Fix refleak in OSError when attrs are set before super().__init__#150990
lgeiger wants to merge 4 commits into
python:mainfrom
lgeiger:refleak-oserror

Conversation

@lgeiger
Copy link
Copy Markdown
Contributor

@lgeiger lgeiger commented Jun 5, 2026

This PR uses Py_XSETREF instead of raw assignments inside oserror_init to prevent reference leaks when assigning attributed before oserror_init is called.

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.

1 participant