bpo-36421: Fix a possible double decref in _ctypes.c's PyCArrayType_new(). (GH-12530)
Set type_attr to NULL after the assignment to stgdict->proto (like what is done with stgdict after the Py_SETREF() call) so that it is not decrefed twice on error.
Z
Zackery Spytz committed
5e333784f007950f22de44c1ffab5b0c03d6691f
Parent: dd5417a
Committed by Serhiy Storchaka <storchaka@gmail.com>
on 3/25/2019, 8:07:47 AM