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
not clear all codec_search_paths
  • Loading branch information
shihai1991 committed Mar 20, 2020
commit 59911e1e4e1fc3f4f47eb3c2656dacb1896aad42
2 changes: 1 addition & 1 deletion Modules/_testinternalcapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ codecs_unregister(PyObject *self, PyObject *Py_UNUSED(args))
Py_SET_SIZE(codec_search_path, 0);
codec_search_path->ob_item = NULL;
codec_search_path->allocated = 0;
while (--i >= 0) {
while (--i > 0) {
Py_XDECREF(item[i]);
}
}
Expand Down