[issue44562] types.GenericAlias should decref instead of using delete in tp_new
Pablo Galindo Salgado
report at bugs.python.org
Sun Jul 4 14:28:51 EDT 2021
Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:
> But is alias->origin initialized to safely call Py_XDECREF(alias->origin)?
Why would that be unsafe? PyType_GenericAlloc sets all fields to NULL so that is going to either be NULL or have an object, no? setup_ga only sets alias->origin if there has been no failures
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44562>
_______________________________________
More information about the Python-bugs-list
mailing list