https://github.com/python/cpython/commit/e54b0c8a4ad6c6e958245eb3ea4ecc47e0f97ff0
commit: e54b0c8a4ad6c6e958245eb3ea4ecc47e0f97ff0
branch: main
author: Dino Viehland <[email protected]>
committer: DinoV <[email protected]>
date: 2024-05-02T13:03:29-07:00
summary:
gh-118519: Fix empty weakref list check (#118520)
Fix empty list check
files:
M Objects/weakrefobject.c
diff --git a/Objects/weakrefobject.c b/Objects/weakrefobject.c
index 93c5fe3aacecfd..88afaec86827ed 100644
--- a/Objects/weakrefobject.c
+++ b/Objects/weakrefobject.c
@@ -988,7 +988,7 @@ PyObject_ClearWeakRefs(PyObject *object)
}
list = GET_WEAKREFS_LISTPTR(object);
- if (FT_ATOMIC_LOAD_PTR(list) == NULL) {
+ if (FT_ATOMIC_LOAD_PTR(*list) == NULL) {
// Fast path for the common case
return;
}
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]