summaryrefslogtreecommitdiffstats
path: root/tools/h5findshd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/h5findshd.c')
-rw-r--r--tools/h5findshd.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/h5findshd.c b/tools/h5findshd.c
index b5cd0f9..20d9492 100644
--- a/tools/h5findshd.c
+++ b/tools/h5findshd.c
@@ -92,9 +92,15 @@ int i;
void
free_table (void){
- HDfree(&group_table);
- HDfree(&dset_table);
- HDfree(&type_table);
+ if (group_table.objs != NULL) {
+ HDfree(group_table.objs);
+ }
+ if (dset_table.objs != NULL) {
+ HDfree(dset_table.objs);
+ }
+ if (type_table.objs != NULL) {
+ HDfree(type_table.objs);
+ }
}