summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2023-04-13 16:11:53 (GMT)
committerGitHub <noreply@github.com>2023-04-13 16:11:53 (GMT)
commit0249cead15fdee5fb3984a2bd93beb6ca52b445e (patch)
treef9e8ed9ff55683852c01cd9911cb58398bad8a02 /tools
parentb8529623eb0eb4fb67f12ae44ecedd5ad447c4b6 (diff)
downloadhdf5-0249cead15fdee5fb3984a2bd93beb6ca52b445e.zip
hdf5-0249cead15fdee5fb3984a2bd93beb6ca52b445e.tar.gz
hdf5-0249cead15fdee5fb3984a2bd93beb6ca52b445e.tar.bz2
Fix #2598 sanitize leak (#2676)
Diffstat (limited to 'tools')
-rw-r--r--tools/lib/h5trav.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/lib/h5trav.c b/tools/lib/h5trav.c
index 3c2353f..a26dac3 100644
--- a/tools/lib/h5trav.c
+++ b/tools/lib/h5trav.c
@@ -149,9 +149,9 @@ trav_token_visited(hid_t loc_id, trav_addr_t *visited, H5O_token_t *token)
size_t u; /* Local index variable */
int token_cmp;
- /* Look for address */
+ /* Look for path associated with token */
for (u = 0; u < visited->nused; u++) {
- /* Check for address already in array */
+ /* Check for token already in array */
if (H5Otoken_cmp(loc_id, &visited->objs[u].token, token, &token_cmp) < 0)
return NULL;
if (!token_cmp)
@@ -286,13 +286,13 @@ traverse(hid_t file_id, const char *grp_name, hbool_t visit_start, hbool_t recur
/* Visit all links in group, recursively */
if (H5Lvisit_by_name2(file_id, grp_name, trav_index_by, trav_index_order, traverse_cb, &udata,
H5P_DEFAULT) < 0)
- H5TOOLS_GOTO_ERROR((-1), "H5Lvisit_by_name failed");
+ H5TOOLS_ERROR((-1), "H5Lvisit_by_name failed");
} /* end if */
else {
/* Iterate over links in group */
if (H5Literate_by_name2(file_id, grp_name, trav_index_by, trav_index_order, NULL, traverse_cb,
&udata, H5P_DEFAULT) < 0)
- H5TOOLS_GOTO_ERROR((-1), "H5Literate_by_name failed");
+ H5TOOLS_ERROR((-1), "H5Literate_by_name failed");
} /* end else */
/* Free visited addresses table */