diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-07-21 11:48:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 11:48:50 (GMT) |
commit | 4be0f157ea7000ded8d4a3ae818a74b026f1fed3 (patch) | |
tree | bfc75327bde4c3f2f21d1f1e801a8b91c1c14a77 /Modules | |
parent | ac9aa8a369e03784c5df7f2f8b598959fc9ef5f4 (diff) | |
download | cpython-4be0f157ea7000ded8d4a3ae818a74b026f1fed3.zip cpython-4be0f157ea7000ded8d4a3ae818a74b026f1fed3.tar.gz cpython-4be0f157ea7000ded8d4a3ae818a74b026f1fed3.tar.bz2 |
[3.12] gh-47146: Fix reference counting in _testcapi.structmember initializer (GH-106862) (GH-106953)
(cherry picked from commit 8d397ee8259fa0f81598a452438fc335267ca260)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_testcapi/structmember.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_testcapi/structmember.c b/Modules/_testcapi/structmember.c index 0fb872a..641b003 100644 --- a/Modules/_testcapi/structmember.c +++ b/Modules/_testcapi/structmember.c @@ -194,7 +194,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); |