mirror of https://github.com/python/cpython
fFx refleak in isinstance error path (GH-31005)
This commit is contained in:
parent
8b1b27f193
commit
8fb3649450
|
@ -4946,6 +4946,7 @@ handle_eval_breaker:
|
|||
PyObject *inst = TOP();
|
||||
int retval = PyObject_IsInstance(inst, cls);
|
||||
if (retval < 0) {
|
||||
Py_DECREF(cls);
|
||||
goto error;
|
||||
}
|
||||
PyObject *res = PyBool_FromLong(retval);
|
||||
|
|
Loading…
Reference in New Issue