]> 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:47:59 +0000 (00:47 -0800)
committerGitHub <noreply@github.com>
Thu, 20 Dec 2018 08:47:59 +0000 (00:47 -0800)
commit4b6caaca41def86d80819f1f93c647918e98393f
tree46f77d6bcb7f704ccbd5893e47634c7b2fb65e3e
parenta26201cd8ef17dc81431f768846291c9f4337550
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