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
pop stackref when error
  • Loading branch information
kumaraditya303 committed May 15, 2025
commit de82e900a8aee093967168c67b332a68dec9ab6e
1 change: 1 addition & 0 deletions Objects/call.c
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,7 @@ PyObject_VectorcallMethod(PyObject *name, PyObject *const *args,
/* Use args[0] as "self" argument */
int unbound = _PyObject_GetMethodStackRef(tstate, args[0], name, &method.ref);
if (PyStackRef_IsNull(method.ref)) {
_PyThreadState_PopCStackRef(tstate, &method);
return NULL;
}
PyObject *callable = PyStackRef_AsPyObjectBorrow(method.ref);
Expand Down
Loading