]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:53:24 +0000 (14:53 +0200)
committerGitHub <noreply@github.com>
Wed, 10 Jun 2026 12:53:24 +0000 (12:53 +0000)
commita3d76e18a8d7b965ca7ddc82e8672a48a2aecfd6
tree968d45552e65d738fa422e0e398226d0f432cca7
parenta9716b775f5dabe5f1294c60281251fde227fb76
[3.14] gh-150988: Fix refleak in `OSError` when attrs are set before `super().__init__()` (GH-150990) (#151241)

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