diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2021-10-08 21:51:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-08 21:51:28 (GMT) |
commit | ed69b1174a5ec875ae6a8e2cd05fbbcc8153d181 (patch) | |
tree | 2c258e5c1cf0304cbe42530b97ecef93b3e33b78 | |
parent | 0c58762e7df2d5b36c4bb969b501c8097fb2901e (diff) | |
download | hdf5-ed69b1174a5ec875ae6a8e2cd05fbbcc8153d181.zip hdf5-ed69b1174a5ec875ae6a8e2cd05fbbcc8153d181.tar.gz hdf5-ed69b1174a5ec875ae6a8e2cd05fbbcc8153d181.tar.bz2 |
1.8 Merge Fix ASAN issue in h5dump error path #1051 (#1061)
* Merge Fix ASAN issue in h5dump error path #1051
* Merge Rework error allocation free.
-rw-r--r-- | tools/h5dump/h5dump.c | 3 | ||||
-rw-r--r-- | tools/lib/h5tools_utils.c | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/tools/h5dump/h5dump.c b/tools/h5dump/h5dump.c index d9906d5..8638c08 100644 --- a/tools/h5dump/h5dump.c +++ b/tools/h5dump/h5dump.c @@ -510,11 +510,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 */ diff --git a/tools/lib/h5tools_utils.c b/tools/lib/h5tools_utils.c index 4629736..e066416 100644 --- a/tools/lib/h5tools_utils.c +++ b/tools/lib/h5tools_utils.c @@ -614,6 +614,7 @@ free_table(table_t *table) HDfree(table->objs[u].objname); HDfree(table->objs); + HDfree(table); } #ifdef H5DUMP_DEBUG |