Skip to content

Commit

Permalink
pythongh-47146: Fix reference counting in _testcapi.structmember init…
Browse files Browse the repository at this point in the history
…ializer (pythonGH-106862)
  • Loading branch information
serhiy-storchaka authored Jul 21, 2023
1 parent fcc816d commit 8d397ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/_testcapi/structmember.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8d397ee

Please sign in to comment.