summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-11-12 13:09:57 (GMT)
committerGitHub <noreply@github.com>2020-11-12 13:09:57 (GMT)
commitd19fa7a337d829e3dab3e9f919f5dcf09cf6f6ba (patch)
tree2a6f34f3b2e8eacb43770e112e500d7cfd612d0e /Python
parentc6409156c4f0743dfb3d625c4e024a8258fc6181 (diff)
downloadcpython-d19fa7a337d829e3dab3e9f919f5dcf09cf6f6ba.zip
cpython-d19fa7a337d829e3dab3e9f919f5dcf09cf6f6ba.tar.gz
cpython-d19fa7a337d829e3dab3e9f919f5dcf09cf6f6ba.tar.bz2
bpo-38823: Fix refleaks in _ctypes extension init (GH-23247)
Fix reference leaks in the error path of the initialization function the _ctypes extension module: call Py_DECREF(mod) on error. Change PyCFuncPtr_Type name from _ctypes.PyCFuncPtr to _ctypes.CFuncPtr to be consistent with the name exposed in the _ctypes namespace (_ctypes.CFuncPtr). Split PyInit__ctypes() function into sub-functions and add macros for readability.
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions