summaryrefslogtreecommitdiffstats
path: root/tools/h5ls
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5ls')
-rw-r--r--tools/h5ls/h5ls.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/h5ls/h5ls.c b/tools/h5ls/h5ls.c
index ed73af4..7107162 100644
--- a/tools/h5ls/h5ls.c
+++ b/tools/h5ls/h5ls.c
@@ -801,7 +801,7 @@ display_enum_type(hid_t type, int ind)
}
/* Convert values to native data type */
- if (native>0) H5Tconvert(super, native, (hsize_t)nmembs, value, NULL, H5P_DEFAULT);
+ if (native>0) H5Tconvert(super, native, nmembs, value, NULL, H5P_DEFAULT);
/* Sort members by increasing value */
/*not implemented yet*/
@@ -2216,7 +2216,7 @@ main (int argc, const char *argv[])
* doesn't exist). */
show_file_name_g = (argc-argno > 1); /*show file names if more than one*/
while (argno<argc) {
- fname = argv[argno++];
+ fname = HDstrdup(argv[argno++]);
oname = NULL;
file = -1;
@@ -2266,6 +2266,7 @@ main (int argc, const char *argv[])
if (H5Gclose(root)<0) leave(1);
}
H5Fclose(file);
+ free(fname);
}
leave(0);
}