mirror of
https://github.com/python/cpython.git
synced 2026-01-27 13:15:25 +00:00
[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>
Source files for standard library extension modules, and former extension modules that are now builtin modules.