Thanks to visit codestin.com
Credit goes to github.com

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 typevarobject.c
  • Loading branch information
eendebakpt committed Mar 6, 2026
commit 3bafd1a380944d684609e2d9a02facfd551d3b64
1 change: 1 addition & 0 deletions Objects/typevarobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -2310,6 +2310,7 @@ _Py_subscript_generic(PyThreadState* unused, PyObject *params)
PyInterpreterState *interp = _PyInterpreterState_GET();
if (interp->cached_objects.generic_type == NULL) {
PyErr_SetString(PyExc_SystemError, "Cannot find Generic type");
Py_DECREF(params);
return NULL;
}
PyObject *args[2] = {(PyObject *)interp->cached_objects.generic_type, params};
Expand Down