]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-143145: Fix possible reference leak in ctypes _build_result() (GH-143131...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 25 Dec 2025 17:09:39 +0000 (18:09 +0100)
committerGitHub <noreply@github.com>
Thu, 25 Dec 2025 17:09:39 +0000 (19:09 +0200)
commit5624bf9758246cea3d40b3be70013f7d4411874d
tree2ca3b617df85e08a3d4fd3955bd333ca525a4de3
parent80f7d493bfd52a2d81ce01456857868ccea96f72
[3.13] gh-143145: Fix possible reference leak in ctypes _build_result() (GH-143131) (GH-143170)

The result tuple was leaked if __ctypes_from_outparam__() failed for any item.
(cherry picked from commit 579c5b496b467a2b175cb30caa4f6873cb13c9a1)

Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
Co-authored-by: Yongtao Huang <yongtaoh2022@gmail.com>
Misc/NEWS.d/next/Library/2025-12-24-14-18-52.gh-issue-143145.eXLw8D.rst [new file with mode: 0644]
Modules/_ctypes/_ctypes.c