]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-81061: Fix refcount issue when returning `None` from a `ctypes.py_object` callback...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 9 Jan 2023 15:54:00 +0000 (07:54 -0800)
committerGitHub <noreply@github.com>
Mon, 9 Jan 2023 15:54:00 +0000 (07:54 -0800)
commitb3744816163c8cb7e6b2603831d5731ef15a6281
tree35e938c7347959967677009199fdeb56f53c4188
parent30a6cc418a60fccb91ba574b552203425e594c47
GH-81061: Fix refcount issue when returning `None` from a `ctypes.py_object` callback (GH-13364)

(cherry picked from commit 837ba052672d1a5f85a46c1b6d4b6e7d192af6f3)

Co-authored-by: dgelessus <dgelessus@users.noreply.github.com>
Lib/ctypes/test/test_refcounts.py
Misc/NEWS.d/next/Library/2019-05-13-11-37-30.bpo-36880.ZgBgH0.rst [new file with mode: 0644]
Modules/_ctypes/callbacks.c