Fix possible NULL pointer dereference in PyCurses_Start_Color()
CID 1058276
Fix possible NULL pointer dereferences in testcapi module
CID 1058280
CID 1058282
CID 1058284
Fix memory leaks and add checks for failing malloc() calls to testcapi module
CID 1058288
Fix declaration-after-statement of d49f65ff4f3c
remove surplus and wrong Py_DECREF() introduced in 33891989c9cf
Check return value of PyLong_FromLong(X509_get_version()). It might be NULL if
X509_get_version() grows beyond our small int cache.
CID 1058279
Handle yet another potential failure in testcapi
CID 1058280
Issue #18559: Fix NULL pointer dereference error in _pickle module
Issue #18560: Fix potential NULL pointer dereference in sum()
Issue #18561: Skip name in ctypes' _build_callargs() if name is NULL.
CID 486199
According to the PEP 7, C code must "use 4-space indents"

Replace 8 spaces with 4.
Parser/asdl_c.py: use Py_CLEAR()