Bug report
Bug description:
In _tuple_shared() (crossinterp_data_lookup.h), there is a memory leak when allocation of the items array fails. This only affects the OOM/error path.
Specifically:
struct _shared_tuple_data *shared = PyMem_RawMalloc(...);
...
shared->items = PyMem_Calloc(...);
if (shared->items == NULL) {
PyErr_NoMemory();
return -1;
}
Related to #146102
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Linked PRs
Bug report
Bug description:
In
_tuple_shared()(crossinterp_data_lookup.h), there is a memory leak when allocation of the items array fails. This only affects the OOM/error path.Specifically:
Related to #146102
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Linked PRs