]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35529: Fix a reference counting bug in PyCFuncPtr_FromDll(). (GH-11229)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 20 Dec 2018 08:51:52 +0000 (00:51 -0800)
committerGitHub <noreply@github.com>
Thu, 20 Dec 2018 08:51:52 +0000 (00:51 -0800)
commit3752bc96c0ea1ecf28903cc34cdcd75c658e92ce
tree6e72ec724b90faa6e45bef8088331968bd72d9e0
parent89b5ea297d67f5efeb8fca0b63fa3d9f7030b2f0
bpo-35529: Fix a reference counting bug in PyCFuncPtr_FromDll(). (GH-11229)

"dll" would leak if an error occurred in _validate_paramflags() or
GenericPyCData_new().
(cherry picked from commit d77d97c9a1f593fe161afab97e2a3e2292ab88b9)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Modules/_ctypes/_ctypes.c