Skip to content
Open
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
add comment
  • Loading branch information
ashm-dev committed Dec 13, 2025
commit 26c577d45eca9aeeb5f3b1e4c9fb58d3e185392e
2 changes: 2 additions & 0 deletions Python/optimizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ static void
uop_dealloc(PyObject *op) {
_PyExecutorObject *self = _PyExecutorObject_CAST(op);

// Object might be already untracked if we are in a GC cycle (via tp_clear).
// Avoid double-untracking.
if (_PyObject_GC_IS_TRACKED(self)) {
_PyObject_GC_UNTRACK(self);
}
Expand Down