Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix a crash in :class:`types.GenericAlias` during substitution of a
``TypeVarTuple`` under allocation failure.
3 changes: 2 additions & 1 deletion Objects/genericaliasobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ subs_tvars(PyObject *obj, PyObject *params,
PyTuple_GET_SIZE(arg));
if (j < 0) {
Py_DECREF(subparams);
Py_DECREF(subargs);
Comment thread
BHUVANSH855 marked this conversation as resolved.
assert(subargs == NULL);
/* tuple_extend() clears subargs on failure. */
return NULL;
}
continue;
Expand Down
Loading