We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f708b03 commit 551a741Copy full SHA for 551a741
Objects/enumobject.c
@@ -188,6 +188,7 @@ increment_longindex_lock_held(enumobject *en)
188
assert(next_index != NULL);
189
PyObject *stepped_up = PyNumber_Add(next_index, en->one);
190
if (stepped_up == NULL) {
191
+ Py_DECREF(next_index);
192
return NULL;
193
}
194
en->en_longindex = stepped_up;
0 commit comments