8000 [3.12] gh-47146: Fix reference counting in _testcapi.structmember ini… · python/cpython@4be0f15 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4be0f15

Browse files
[3.12] gh-47146: Fix reference counting in _testcapi.structmember initializer (GH-106862) (GH-106953)
(cherry picked from commit 8d397ee) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent ac9aa8a commit 4be0f15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_testcapi/structmember.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ _PyTestCapi_Init_Structmember(PyObject *m)
194194
if (res < 0) {
195195
return -1;
196196
}
197-
res = PyModule_AddObject(
197+
res = PyModule_AddObjectRef(
198198
m,
199199
"_test_structmembersType_OldAPI",
200200
(PyObject *)&test_structmembersType_OldAPI);

0 commit comments

Comments
 (0)
0