summaryrefslogtreecommitdiffstats
path: root/Python/bytecodes.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/bytecodes.c')
-rw-r--r--Python/bytecodes.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index e20b9ff..b957d88 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -1425,7 +1425,6 @@ dummy_func(
Py_INCREF(value);
}
else if (_PyErr_Occurred(tstate)) {
- Py_DECREF(class_dict);
goto error;
}
}
@@ -1433,13 +1432,11 @@ dummy_func(
value = PyObject_GetItem(class_dict, name);
if (value == NULL) {
if (!_PyErr_ExceptionMatches(tstate, PyExc_KeyError)) {
- Py_DECREF(class_dict);
goto error;
}
_PyErr_Clear(tstate);
}
}
- Py_DECREF(class_dict);
if (!value) {
PyObject *cell = GETLOCAL(oparg);
value = PyCell_GET(cell);
@@ -1449,6 +1446,7 @@ dummy_func(
}
Py_INCREF(value);
}
+ Py_DECREF(class_dict);
}
inst(LOAD_DEREF, ( -- value)) {