bpo-34784: Implement correct cleanup in PyStructSequence new implementation (GH-10536)
PyTuple_Pack can fail and return NULL. If this happens, then PyType_FromSpecWithBases will incorrectly create a new type without bases. Also, it will crash on the Py_DECREF that follows. Also free members and type in error conditions.
P
Pablo Galindo committed
bfb855bef6b428d639693caaf4e4c84cbb8a2f51
Parent: 4c596d5
Committed by GitHub <noreply@github.com>
on 11/15/2018, 2:03:57 AM