You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reference leak in OSError when setting attributes before super().__init__ #150988
If an OSError subclass sets attributes on self prior to calling OSError.__init__ (or if __init__ is invoked multiple times) references are leaked. If OSError.__init__ is called before setting attributes no references are leaked.
changed the title [-]Reference leak in `OSError` when setting attributes before `super().__init_[/-][+]Reference leak in `OSError` when setting attributes before `super().__init__`[/+]on Jun 5, 2026
Activity
[-]Reference leak in `OSError` when setting attributes before `super().__init_[/-][+]Reference leak in `OSError` when setting attributes before `super().__init__`[/+]pythongh-150988: Fix OSError reference leak in oserror_init()
gh-150988: Fix refleak in `OSError` when attrs are set before `super(…
vstinner commentedon Jun 10, 2026
Thanks for the bug report and the fix. It's now fixed.
[3.13] gh-150988: Fix refleak in `OSError` when attrs are set before …
[3.14] gh-150988: Fix refleak in `OSError` when attrs are set before …
[3.15] gh-150988: Fix refleak in `OSError` when attrs are set before …
pythongh-150988: Fix refleak in `OSError` when attrs are set before `…