8000 gh-115874: Fix segfault in `FutureIter_dealloc` by savannahostrowski · Pull Request #117741 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-115874: Fix segfault in FutureIter_dealloc #117741

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 17 commits into from
Apr 19, 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
Update Modules/_asynciomodule.c
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
  • Loading branch information
savannahostrowski and brandtbucher authored Apr 17, 2024
commit 36c960b1a53a0129fcbefb3c18e4722fbd5801ec
8000
3 changes: 1 addition & 2 deletions Modules/_asynciomodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1604,8 +1604,7 @@ FutureIter_dealloc(futureiterobject *it)

assert(_PyType_HasFeature((PyTypeObject *)tp, Py_TPFLAGS_HEAPTYPE));

PyHeapTypeObject *ht = (PyHeapTypeObject*)tp;
PyObject *module = ht->ht_module;
PyObject *module = ((PyHeapTypeObject*)tp)->ht_module;
asyncio_state *state = NULL;

PyObject_GC_UnTrack(it);
Expand Down
0