summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/src/h5dump/h5dump.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/src/h5dump/h5dump.c b/tools/src/h5dump/h5dump.c
index 5267188..52158fb 100644
--- a/tools/src/h5dump/h5dump.c
+++ b/tools/src/h5dump/h5dump.c
@@ -407,10 +407,9 @@ table_list_add(hid_t oid, unsigned long file_no)
}
if(init_objs(oid, &info, &table_list.tables[idx].group_table,
&table_list.tables[idx].dset_table, &table_list.tables[idx].type_table) < 0) {
- if (H5Idec_ref(oid) < 0) {
+ H5Idec_ref(oid);
table_list.nused--;
return -1;
- }
}
#ifdef H5DUMP_DEBUG