mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
gh-47146: Fix reference counting in _testcapi.structmember initializer (GH-106862)
This commit is contained in:
parent
fcc816dbff
commit
8d397ee825
1 changed files with 1 additions and 1 deletions
|
|
@ -193,7 +193,7 @@ _PyTestCapi_Init_Structmember(PyObject *m)
|
|||
if (res < 0) {
|
||||
return -1;
|
||||
}
|
||||
res = PyModule_AddObject(
|
||||
res = PyModule_AddObjectRef(
|
||||
m,
|
||||
"_test_structmembersType_OldAPI",
|
||||
(PyObject *)&test_structmembersType_OldAPI);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue