Commit 5f3f49b1 authored by Pavan Balaji's avatar Pavan Balaji Committed by Michael Blocksome
Browse files

Use MPIU_Malloc/Free instead of malloc/free.


Signed-off-by: default avatarMichael Blocksome <blocksom@us.ibm.com>
parent 1a993e87
......@@ -61,12 +61,12 @@ MPID_Win_create_dynamic( MPID_Info * info,
void *base = NULL;
size_t length = 0;
Kernel_MemoryRegion_t memregion;
void *tmpbuf = malloc(sizeof(int));
void *tmpbuf = MPIU_Malloc(sizeof(int));
Kernel_CreateMemoryRegion(&memregion, tmpbuf, sizeof(int));
//Reset base to base VA of local heap
base = memregion.BaseVa;
length = memregion.Bytes;
free(tmpbuf);
MPIU_Free(tmpbuf);
if (length != 0)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment