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().
V
Victor Stinner committed
edb10cab39748cb5cd5ba12080e410f0e0baff66
Parent: acc6468
Committed by GitHub <noreply@github.com>
on 6/27/2022, 9:46:22 PM