summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index fa14a1c..b69d5aa 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -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);