]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-87347: Fix test_pymem_new() reference leak (#94330)
authorVictor Stinner <vstinner@python.org>
Mon, 27 Jun 2022 21:46:22 +0000 (23:46 +0200)
committerGitHub <noreply@github.com>
Mon, 27 Jun 2022 21:46:22 +0000 (23:46 +0200)
commitedb10cab39748cb5cd5ba12080e410f0e0baff66
treea409105a598fcd992c8303c26b3b18533c7e6976
parentacc6468f7ee0d1f22633f0b84df28f69e75f1260
gh-87347: Fix test_pymem_new() reference leak (#94330)

Delete the allocated object with Py_DECREF() rather than
PyObject_Free().

Rename also test_pymem_new() to test_pyobject_new().
Modules/_testcapimodule.c