8000 bpo-34492: Python/coreconfig.c: Fix _Py_wstrlist_copy() by izbyshev · Pull Request #8910 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-34492: Python/coreconfig.c: Fix _Py_wstrlist_copy() #8910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 24, 2018
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
8000 Diff view
Diff view
Prev Previous commit
Fix _Py_wstrlist_clear() call on a wrong list
  • Loading branch information
Alexey Izbyshev committed Aug 24, 2018
commit 6e5c32db9f88a61108585b5b806e4f1c03434811
2 changes: 1 addition & 1 deletion Python/coreconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ _Py_wstrlist_copy(int len, wchar_t **list)
for (int i=0; i < len; i++) {
wchar_t* arg = _PyMem_RawWcsdup(list[i]);
if (arg == NULL) {
_Py_wstrlist_clear(i, list);
_Py_wstrlist_clear(i, list_copy);
return NULL;
}
list_copy[i] = arg;
Expand Down
0