8000 gh-103092: Ensure `_ctypes.c` static types are accessed via global state by neonene · Pull Request #113857 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-103092: Ensure _ctypes.c static types are accessed via global state #113857

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 5 commits into from
Jan 22, 2024
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
follow a1ade06 (remove brackets)
  • Loading branch information
neonene authored Jan 19, 2024
commit b8d43e1d025bd1913b5e60e787349c8c3b93cf97
3 changes: 1 addition & 2 deletions Modules/_ctypes/callbacks.c
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,8 @@ CThunkObject *_ctypes_alloc_callback(PyObject *callable,
assert(PyTuple_Check(converters));
nargs = PyTuple_GET_SIZE(converters);
p = CThunkObject_new(nargs);
if (p == NULL) {
if (p == NULL)
return NULL;
}

#ifdef Py_DEBUG
ctypes_state *st = GLOBAL_STATE();
Expand Down
0