summaryrefslogtreecommitdiffstats
path: root/src/H5I.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5I.c')
-rw-r--r--src/H5I.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5I.c b/src/H5I.c
index 3f7ad0b..15ad9c2 100644
--- a/src/H5I.c
+++ b/src/H5I.c
@@ -424,6 +424,9 @@ H5I_clear_group(H5I_type_t grp, hbool_t force)
(unsigned long)(cur->obj_ptr));
}
#endif /*H5I_DEBUG*/
+ /* Decrement the number of IDs in the group */
+ (grp_ptr->ids)--;
+
/* Add ID struct to free list */
next = cur->next;
H5FL_FREE(H5I_id_info_t,cur);
@@ -435,6 +438,9 @@ H5I_clear_group(H5I_type_t grp, hbool_t force)
prev = cur;
}
} else {
+ /* Decrement the number of IDs in the group */
+ (grp_ptr->ids)--;
+
/* Add ID struct to free list */
next = cur->next;
H5FL_FREE(H5I_id_info_t,cur);