aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/crossinterp.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/crossinterp.c')
-rw-r--r--Python/crossinterp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/crossinterp.c b/Python/crossinterp.c
index a1dd6b5901d..662c9c72b15 100644
--- a/Python/crossinterp.c
+++ b/Python/crossinterp.c
@@ -154,7 +154,7 @@ _PyXIData_InitWithSize(_PyXIData_t *xidata,
// where it was allocated, so the interpreter is required.
assert(interp != NULL);
_PyXIData_Init(xidata, interp, NULL, obj, new_object);
- xidata->data = PyMem_RawMalloc(size);
+ xidata->data = PyMem_RawCalloc(1, size);
if (xidata->data == NULL) {
return -1;
}