Files
f8672b4ef4 [3.15] gh-151818: Fix double-free in _CALL_LIST_APPEND on allocation failure (GH-151826) (#160200)
On allocation failure, close the remaining live inputs and pop all three
inputs before unwinding, so the consumed argument is not closed twice.

Backport the regression test and regenerate the interpreter files using
the 3.15 cases generator.

(cherry picked from commit 4ecf6ca1b3)

Co-authored-by: Timur Mamedov <[email protected]>
2026-10-22 06:23:06 -07:00
..
…

Tests in this directory are compiled into the _testinternalcapi extension.
The main file for the extension is Modules/_testinternalcapimodule.c, which
calls `_PyTestInternalCapi_Init_*` from these functions.

See Modules/_testcapi/README.txt for guideline when writing C test code.