8000 GH-81057: remove static state from suggestions.c by kumaraditya303 · Pull Request #99411 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-81057: remove static state from suggestions.c #99411

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 4 commits into from
Nov 30, 2022
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 error handling
  • Loading branch information
kumaraditya303 authored Nov 13, 2022
commit 0dfd101de35cb51810c116189a76b5a200a8bd63
1 change: 1 addition & 0 deletions Python/suggestions.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ calculate_suggestions(PyObject *dir,
Py_ssize_t item_size;
const char *item_str = PyUnicode_AsUTF8AndSize(item, &item_size);
if (item_str == NULL) {
PyMem_Free(buffer);
return NULL;
}
if (PyUnicode_CompareWithASCIIString(name, item_str) == 0) {
Expand Down
0