Skip to content

Commit c0601ba

Browse files
committed
Dictionaries aren't marking objects as weakref'd
1 parent 9968caa commit c0601ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/dictobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1488,7 +1488,7 @@ _Py_dict_lookup_threadsafe(PyDictObject *mp, PyObject *key, Py_hash_t hash, PyOb
14881488
*value_addr = value;
14891489
if (value != NULL) {
14901490
assert(ix >= 0);
1491-
Py_INCREF(value);
1491+
_Py_NewRefWithLock(value);
14921492
}
14931493
Py_END_CRITICAL_SECTION();
14941494
return ix;

0 commit comments

Comments
 (0)