We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c820cd6 + 712c7e1 commit 9410d2cCopy full SHA for 9410d2c
src/mpi/datatype/typerep/dataloop/dataloop.c
@@ -397,7 +397,7 @@ void MPII_Dataloop_alloc_and_copy(int kind,
397
new_loop_sz += loop_sz + off_sz + blk_sz + ptr_sz + extent_sz + old_loop_sz;
398
399
/* allocate space */
400
- new_loop = (MPII_Dataloop *) MPL_malloc(new_loop_sz, MPL_MEM_DATATYPE);
+ new_loop = (MPII_Dataloop *) MPL_calloc(1, new_loop_sz, MPL_MEM_DATATYPE);
401
if (new_loop == NULL) {
402
*new_loop_p = NULL;
403
return;
0 commit comments