summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAllen Byrne <50328838+byrnHDF@users.noreply.github.com>2021-10-04 11:23:30 (GMT)
committerGitHub <noreply@github.com>2021-10-04 11:23:30 (GMT)
commit88d6015ee1679bd383c15ba863c5d1f1e6ad9f56 (patch)
tree16d0c57797b0ed67ff7167de9ec44d322e1c8171 /tools
parent0e9960a401a6d856cdfd30b941b3e2474086cb15 (diff)
downloadhdf5-88d6015ee1679bd383c15ba863c5d1f1e6ad9f56.zip
hdf5-88d6015ee1679bd383c15ba863c5d1f1e6ad9f56.tar.gz
hdf5-88d6015ee1679bd383c15ba863c5d1f1e6ad9f56.tar.bz2
1.10 Merge ASAN fixes (#1060)
* Merge ASAN fixes Fix ASAN issue in h5dump error path #1051 ASAN fix for test_ld - free sub-allocation of fields #10 * Merge Rework error allocation free.
Diffstat (limited to 'tools')
-rw-r--r--tools/lib/h5tools_utils.c1
-rw-r--r--tools/src/h5dump/h5dump.c3
2 files changed, 1 insertions, 3 deletions
diff --git a/tools/lib/h5tools_utils.c b/tools/lib/h5tools_utils.c
index b60ee4f..36333ec 100644
--- a/tools/lib/h5tools_utils.c
+++ b/tools/lib/h5tools_utils.c
@@ -449,6 +449,7 @@ free_table(table_t *table)
HDfree(table->objs[u].objname);
HDfree(table->objs);
+ HDfree(table);
}
#ifdef H5DUMP_DEBUG
diff --git a/tools/src/h5dump/h5dump.c b/tools/src/h5dump/h5dump.c
index 67ae7f7..f2a10c2 100644
--- a/tools/src/h5dump/h5dump.c
+++ b/tools/src/h5dump/h5dump.c
@@ -438,11 +438,8 @@ table_list_free(void)
/* Free each table */
free_table(table_list.tables[u].group_table);
- HDfree(table_list.tables[u].group_table);
free_table(table_list.tables[u].dset_table);
- HDfree(table_list.tables[u].dset_table);
free_table(table_list.tables[u].type_table);
- HDfree(table_list.tables[u].type_table);
}
/* Free the table list */