Skip to content

Commit 7cd79d3

Browse files
authored
Update Python/crossinterp.c
1 parent 8cf9517 commit 7cd79d3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Python/crossinterp.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,7 @@ _PyXIData_InitWithSize(_PyXIData_t *xidata,
388388
_PyXIData_Init(xidata, interp, NULL, obj, new_object);
389389
xidata->data = PyMem_RawCalloc(1, size);
390390
if (xidata->data == NULL) {
391+
Py_CLEAR(xidata->obj);
391392
PyErr_NoMemory();
392393
return -1;
393394
}

0 commit comments

Comments
 (0)