]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-146250: Fix memory leak in re-initialization of `SyntaxError` (GH-146251...
authorAN Long <aisk@users.noreply.github.com>
Mon, 30 Mar 2026 16:06:52 +0000 (00:06 +0800)
committerGitHub <noreply@github.com>
Mon, 30 Mar 2026 16:06:52 +0000 (21:36 +0530)
commitc09ccd9c429bdfac85ee427d9d0def32af47492d
tree2c6c96c3460236fe47a994300b2e79760de580d4
parent0dcb625be4410026f53df515282674d7908b005f
[3.13] gh-146250: Fix memory leak in re-initialization of `SyntaxError` (GH-146251) (#146519)

* [3.13] gh-146250: Fix memory leak in re-initialization of `SyntaxError` (GH-146251)
(cherry picked from commit 0de4e08a5990e4692feb1b1ea01c303e468a2894)

Co-authored-by: Brij Kapadia <97006829+bkap123@users.noreply.github.com>
* Minimize the changes

* Minimize the changes

* Minimize the changes

---------

Co-authored-by: Brij Kapadia <97006829+bkap123@users.noreply.github.com>
Lib/test/test_exceptions.py
Misc/NEWS.d/next/Core_and_Builtins/2026-03-21-11-55-16.gh-issue-146250.ahl3O2.rst [new file with mode: 0644]
Objects/exceptions.c