Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Comment thread
cmaloney marked this conversation as resolved.
Resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a crash when allocation failure occurs during :ref:`interp-object-sharing`.
2 changes: 2 additions & 0 deletions Python/crossinterp.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ _PyXIData_InitWithSize(_PyXIData_t *xidata,
_PyXIData_Init(xidata, interp, NULL, obj, new_object);
xidata->data = PyMem_RawCalloc(1, size);
if (xidata->data == NULL) {
Py_CLEAR(xidata->obj);
PyErr_NoMemory();
Comment thread
cmaloney marked this conversation as resolved.
Resolved
return -1;
}
xidata->free = PyMem_RawFree;
Expand Down
Loading