diff options
author | Gregory P. Smith <greg@krypto.org> | 2023-01-26 09:02:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-26 09:02:37 (GMT) |
commit | fa7c37af4936abfe34aa261d6ed9703bc5842ad4 (patch) | |
tree | 96f09140d9b98fa253e2f911f735c8d9854818d4 /Lib/test/pydoc_mod.py | |
parent | cd0fe5ba09df65bdee90738129b7315a936b83fb (diff) | |
download | cpython-fa7c37af4936abfe34aa261d6ed9703bc5842ad4.zip cpython-fa7c37af4936abfe34aa261d6ed9703bc5842ad4.tar.gz cpython-fa7c37af4936abfe34aa261d6ed9703bc5842ad4.tar.bz2 |
[3.11] gh-99952: fix refcount issues in ctypes.Structure from_param() result (#101339)
[3.11] gh-99952: [ctypes] fix refcount issues in from_param() result. (GH-100169)
Fixes a reference counting issue with `ctypes.Structure` when a `from_param()` method call is used and the structure size is larger than a C pointer `sizeof(void*)`.
This problem existed for a very long time, but became more apparent in 3.8+ by change likely due to garbage collection cleanup timing changes..
(cherry picked from commit dfad678d7024ab86d265d84ed45999e031a03691)
Co-authored-by: Yukihiro Nakadaira <yukihiro.nakadaira@gmail.com>
Diffstat (limited to 'Lib/test/pydoc_mod.py')
0 files changed, 0 insertions, 0 deletions