]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:53 +0000 (18:09 +0100)
committerGitHub <noreply@github.com>
Thu, 25 Dec 2025 17:09:53 +0000 (19:09 +0200)
commit88a4d0d34b7dc67f3daea57898c281439dce085d
tree7e45fbdbe2919c3621968795526427457d04940d
parent8a61b71eeef01b6024dccf6705cdfaa4c6c2edaf
[3.14] gh-143145: Fix possible reference leak in ctypes _build_result() (GH-143131) (GH-143169)

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