gh-156124: Fix a crash when deleting ctypes Pointer.contents (GH-156125)
In the free-threaded build the setter passed the value to Py_BEGIN_CRITICAL_SECTION2() before checking it for NULL.
S
Serhiy Storchaka committed
ca6e733efcb624ebcd63a38b73eb92496bc7ca1b
Parent: daebcac
Committed by GitHub <noreply@github.com>
on 8/21/2026, 7:05:50 AM