]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-143145: Fix possible reference leak in ctypes _build_result() (GH-143131)
authorYongtao Huang <yongtaoh2022@gmail.com>
Thu, 25 Dec 2025 14:24:25 +0000 (22:24 +0800)
committerGitHub <noreply@github.com>
Thu, 25 Dec 2025 14:24:25 +0000 (14:24 +0000)
commit579c5b496b467a2b175cb30caa4f6873cb13c9a1
treed85a90e459bfa32575174a0e1668d3f2ef2da06c
parent8d46f961c30b795357df9a8cde479742562d8fc5
gh-143145: Fix possible reference leak in ctypes _build_result() (GH-143131)

The result tuple was leaked if __ctypes_from_outparam__() failed for any item.

Signed-off-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