GH-81061: Fix refcount issue when returning `None` from a `ctypes.py_object` callback by dgelessus · Pull Request #13364 · python/cpython

@dgelessus

@dgelessus

Thank you to Eryk Sun for finding the cause of the bug and providing
the code fix.

@dgelessus dgelessus marked this pull request as ready for review

May 16, 2019 17:46

isidentical

dgelessus added a commit to dgelessus/rubicon-objc that referenced this pull request

May 24, 2019

@dgelessus

kumaraditya303

@dgelessus

# Conflicts:
#	Modules/_ctypes/callbacks.c

eryksun

eryksun

pablogsal

Co-authored-by: Eryk Sun <eryksun@gmail.com>

@dgelessus

kumaraditya303

kumaraditya303

@kumaraditya303 kumaraditya303 changed the title bpo-36880: Fix refcount issue when returning None from a ctypes.py_object callback GH-81061: Fix refcount issue when returning None from a ctypes.py_object callback

Jan 9, 2023

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jan 9, 2023
…es.py_object` callback (pythonGH-13364)

(cherry picked from commit 837ba05)

Co-authored-by: dgelessus <dgelessus@users.noreply.github.com>

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jan 9, 2023
…es.py_object` callback (pythonGH-13364)

(cherry picked from commit 837ba05)

Co-authored-by: dgelessus <dgelessus@users.noreply.github.com>

miss-islington added a commit that referenced this pull request

Jan 9, 2023
…object` callback (GH-13364)

(cherry picked from commit 837ba05)

Co-authored-by: dgelessus <dgelessus@users.noreply.github.com>

miss-islington added a commit that referenced this pull request

Jan 9, 2023
…object` callback (GH-13364)

(cherry picked from commit 837ba05)

Co-authored-by: dgelessus <dgelessus@users.noreply.github.com>