# Bug report ### Bug description: `_ctypes._build_result()` leaks a reference to the result tuple when `numretvals > 1` and `v = NULL` during result construction. https://github.com/python/cpython/blob/main/Modules/_ctypes/_ctypes.c#L4559-L4562 ### CPython versions tested on: CPython main branch ### Operating systems tested on: Windows <!-- gh-linked-prs --> ### Linked PRs * gh-143131 * gh-143169 * gh-143170 <!-- /gh-linked-prs -->