mirror of
https://github.com/python/cpython.git
synced 2025-07-13 06:15:17 +00:00
fFx refleak in isinstance error path (GH-31005)
This commit is contained in:
parent
8b1b27f193
commit
8fb3649450
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue