]> 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 16:06:17 +0000 (08:06 -0800)
committerGitHub <noreply@github.com>
Mon, 9 Jan 2023 16:06:17 +0000 (08:06 -0800)
commit2d1128e9eb9be56e3cd105f4a38564ac4c01e68e
tree3938e8f8ff35b43396960be382cf136387f89dd0
parent074b881e1125bc431ef18681034ba43a9d6e2cb7
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