Skip to content

Commit

Permalink
Fix obj_round_robin_io_all test code
Browse files Browse the repository at this point in the history
  • Loading branch information
houjun committed Aug 2, 2023
1 parent e9abc58 commit 38a34fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tests/obj_round_robin_io_all.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ main(int argc, char **argv)
my_data_size *= dims[i];
}

mydata = (char **)malloc(size * WRITE_REQ_SIZE);
mydata = (char **)malloc(2 * sizeof(char*));
mydata[0] = (char *)malloc(my_data_size * type_size);
mydata[1] = mydata[0] + my_data_size * type_size;
mydata[1] = (char *)malloc(my_data_size * type_size);

offset = (uint64_t *)malloc(sizeof(uint64_t) * ndim);
mysize = (uint64_t *)malloc(sizeof(uint64_t));
Expand Down Expand Up @@ -453,6 +453,8 @@ main(int argc, char **argv)
free(obj1_list);
free(obj2_list);
free(data_read);
free(mydata[0]);
free(mydata[1]);
free(mydata);
free(offset);
free(mysize);
Expand Down

0 comments on commit 38a34fe

Please sign in to comment.