Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix refleak
  • Loading branch information
sweeneyde committed Mar 13, 2021
commit 8f70ae0246968a02c69a605ee5b750a8b31408ec
1 change: 1 addition & 0 deletions Modules/_collectionsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,7 @@ deque_rotate(dequeobject *deque, PyObject *const *args, Py_ssize_t nargs)
return NULL;
}
n = PyLong_AsSsize_t(index);
Py_DECREF(index);
if (n == -1 && PyErr_Occurred()) {
return NULL;
}
Expand Down