diff options
Diffstat (limited to 'testpar/testphdf5.c')
-rw-r--r-- | testpar/testphdf5.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c index f83bd4e..dc28cc9 100644 --- a/testpar/testphdf5.c +++ b/testpar/testphdf5.c @@ -336,7 +336,7 @@ main(int argc, char **argv) HDmemset(filenames, 0, sizeof(filenames)); for (int i = 0; i < NFILENAME; i++) { - if (NULL == (filenames[i] = HDmalloc(PATH_MAX))) { + if (NULL == (filenames[i] = malloc(PATH_MAX))) { printf("couldn't allocate filename array\n"); MPI_Abort(MPI_COMM_WORLD, -1); } @@ -554,7 +554,7 @@ main(int argc, char **argv) } for (int i = 0; i < NFILENAME; i++) { - HDfree(filenames[i]); + free(filenames[i]); filenames[i] = NULL; } |