diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2021-10-03 13:06:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-03 13:06:08 (GMT) |
commit | eca8d5b767b40df359e7654fc92f00c516947f7f (patch) | |
tree | fef81ee315865f4f11b548c572b5f39a7575468d | |
parent | b3cb56e2550958da00826a25580621cdbd28d91a (diff) | |
download | hdf5-eca8d5b767b40df359e7654fc92f00c516947f7f.zip hdf5-eca8d5b767b40df359e7654fc92f00c516947f7f.tar.gz hdf5-eca8d5b767b40df359e7654fc92f00c516947f7f.tar.bz2 |
Fix ASAN issue in h5dump error path (#1051)
* Fix ASAN issue in h5dump error path
* Rework error allocation free.
-rw-r--r-- | tools/lib/h5tools_utils.c | 1 | ||||
-rw-r--r-- | tools/src/h5dump/h5dump.c | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/tools/lib/h5tools_utils.c b/tools/lib/h5tools_utils.c index f2407bf..ea9812b 100644 --- a/tools/lib/h5tools_utils.c +++ b/tools/lib/h5tools_utils.c @@ -450,6 +450,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 e6d1de3..23498bd 100644 --- a/tools/src/h5dump/h5dump.c +++ b/tools/src/h5dump/h5dump.c @@ -465,11 +465,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 */ |