mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-30 15:32:37 +08:00
Fix ASAN issue in h5dump error path (#1051)
* Fix ASAN issue in h5dump error path * Rework error allocation free.
This commit is contained in:
parent
b3cb56e255
commit
eca8d5b767
@ -450,6 +450,7 @@ free_table(table_t *table)
|
||||
HDfree(table->objs[u].objname);
|
||||
|
||||
HDfree(table->objs);
|
||||
HDfree(table);
|
||||
}
|
||||
|
||||
#ifdef H5DUMP_DEBUG
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user