summaryrefslogtreecommitdiffstats
path: root/tools/test/h5jam/getub.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test/h5jam/getub.c')
-rw-r--r--tools/test/h5jam/getub.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/test/h5jam/getub.c b/tools/test/h5jam/getub.c
index 192371d..5ac9c7f 100644
--- a/tools/test/h5jam/getub.c
+++ b/tools/test/h5jam/getub.c
@@ -120,7 +120,7 @@ main(int argc, char *argv[])
goto error;
} /* end if */
- if (NULL == (buf = (char *)HDmalloc((unsigned)(size + 1)))) {
+ if (NULL == (buf = (char *)malloc((unsigned)(size + 1)))) {
error_msg("can't allocate buffer \n");
goto error;
} /* end if */
@@ -137,15 +137,15 @@ main(int argc, char *argv[])
} /* end if */
/* close things and exit */
- HDfree(filename);
- HDfree(buf);
+ free(filename);
+ free(buf);
HDclose(fd);
return EXIT_SUCCESS;
error:
- HDfree(filename);
- HDfree(buf);
+ free(filename);
+ free(buf);
if (fd >= 0)
HDclose(fd);
return EXIT_FAILURE;