Skip to content

Commit 593430b

Browse files
Use the raw allocator for _PyCrossInterpreterData_InitWithSize().
1 parent ff727ec commit 593430b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/pystate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2286,11 +2286,11 @@ _PyCrossInterpreterData_InitWithSize(_PyCrossInterpreterData *data,
22862286
// where it was allocated, so the interpreter is required.
22872287
assert(interp != NULL);
22882288
_PyCrossInterpreterData_Init(data, interp, NULL, obj, new_object);
2289-
data->data = PyMem_Malloc(size);
2289+
data->data = PyMem_RawMalloc(size);
22902290
if (data->data == NULL) {
22912291
return -1;
22922292
}
2293-
data->free = PyMem_Free;
2293+
data->free = PyMem_RawFree;
22942294
return 0;
22952295
}
22962296

0 commit comments

Comments
 (0)