mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
gh-105927: finalize_modules_clear_weaklist() uses _PyWeakref_GET_REF() (#105971)
finalize_modules_clear_weaklist() now holds a strong reference to the module longer than before: replace PyWeakref_GET_OBJECT() with _PyWeakref_GET_REF().
This commit is contained in:
parent
fc32522b08
commit
4328dc6465
3 changed files with 7 additions and 6 deletions
|
@ -504,7 +504,7 @@ PyModule_GetDict(PyObject *m)
|
|||
PyErr_BadInternalCall();
|
||||
return NULL;
|
||||
}
|
||||
return _PyModule_GetDict(m);
|
||||
return _PyModule_GetDict(m); // borrowed reference
|
||||
}
|
||||
|
||||
PyObject*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue