mirror of https://github.com/python/cpython
gh-47146: Fix reference counting in _testcapi.structmember initializer (GH-106862)
This commit is contained in:
parent
fcc816dbff
commit
8d397ee825
|
@ -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…
Reference in New Issue