]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-150988: Fix refleak in `OSError` when attrs are set before `super().__init_...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 10 Jun 2026 12:51:12 +0000 (14:51 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jun 2026 12:51:12 +0000 (12:51 +0000)
commita1f9bd2346e2a40e54fa96f3206d26ebc3a7d882
treeab36ac0ad76e9dae58950ce583f1969c4e80187c
parent52ee56a88e47c54ba45b2b46853f85b2f4bf7f4e
[3.13] gh-150988: Fix refleak in `OSError` when attrs are set before `super().__init__()` (GH-150990) (#151242)

gh-150988: Fix refleak in `OSError` when attrs are set before `super().__init__()` (GH-150990)
(cherry picked from commit f2a0f82282d6307f7fd2d4ccf52a8fd95ac3922f)

Co-authored-by: Lukas Geiger <lukas.geiger94@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_exceptions.py
Misc/NEWS.d/next/Core_and_Builtins/2026-06-05-22-52-41.gh-issue-150988.fDKfMJ.rst [new file with mode: 0644]
Objects/exceptions.c