Skip to content

Commit fd5c844

Browse files
Address review
1 parent 1942e6a commit fd5c844

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Python/bytecodes.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4206,10 +4206,12 @@ dummy_func(
42064206
PyObject *res_o = _PyCFunction_TrampolineCall(cfunc, PyCFunction_GET_SELF(callable_o), PyStackRef_AsPyObjectBorrow(arg));
42074207
_Py_LeaveRecursiveCallTstate(tstate);
42084208
assert((res_o != NULL) ^ (_PyErr_Occurred(tstate) != NULL));
4209+
if (res_o == NULL) {
4210+
ERROR_NO_POP();
4211+
}
42094212
a = arg;
42104213
c = callable;
42114214
INPUTS_DEAD();
4212-
ERROR_IF(res_o == NULL);
42134215
res = PyStackRef_FromPyObjectSteal(res_o);
42144216
}
42154217

0 commit comments

Comments
 (0)