Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Fix refleak in genericaliasobject.c
  • Loading branch information
eendebakpt committed Mar 6, 2026
commit c9d5cacb4761eb45be6aca0014a0726cc6b02d8b
3 changes: 3 additions & 0 deletions Objects/genericaliasobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,8 @@ subs_tvars(PyObject *obj, PyObject *params,
&PyTuple_GET_ITEM(arg, 0),
PyTuple_GET_SIZE(arg));
if (j < 0) {
Py_DECREF(subparams);
Py_DECREF(subargs);
return NULL;
}
continue;
Expand Down Expand Up @@ -455,6 +457,7 @@ _Py_subs_parameters(PyObject *self, PyObject *args, PyObject *parameters, PyObje
if (is_args_list) {
args = tuple_args = PySequence_Tuple(args);
if (args == NULL) {
Py_DECREF(item);
return NULL;
}
}
Expand Down