]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
_testmultiphase: Fix possible ref leak (GH-22881)
authorDong-hee Na <donghee.na92@gmail.com>
Thu, 22 Oct 2020 09:44:18 +0000 (18:44 +0900)
committerGitHub <noreply@github.com>
Thu, 22 Oct 2020 09:44:18 +0000 (02:44 -0700)
commit8a9463f2d4044506910e26a8ed42e2bc9fc3e0f8
treef1a801e5dd84329f46c82d6512f7d27e412d3c2d
parentc8ba47b5518f83b5766fefe6f68557b5033e1d70
_testmultiphase: Fix possible ref leak (GH-22881)

This is just test code, but sometimes external contributors reference the code snippets from test code.
`PyModule_AddObject` should be handled in the proper way.

https://docs.python.org/3/c-api/module.html#c.PyModule_AddObject
Modules/_testmultiphase.c