8000 Make sure we set the cleared flag · python/cpython@ccaeded · GitHub
[go: up one dir, main page]

Skip to content

Commit ccaeded

Browse files
committed
Make sure we set the cleared flag
1 parent 37c511a commit ccaeded

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Objects/weakrefobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ clear_weakref_lock_held(PyWeakReference *self, PyObject **callback)
212212
*callback = self->wr_callback;
213213
self->wr_callback = NULL;
214214
}
215+
self->clear_state->cleared = 1;
215216
}
216217

217218
// Clear the weakref while the world is stopped

0 commit comments

Comments
 (0)
0